- 自動で設定されるフォルダ名を変更する
- 設定 → 地域の言語 → 言語の追加 → 日本語 → オプション → 英語キーボード(101/102)
- 設定 → システム → ディスプレイ → 夜間モード(4:00/3:45)
- Ctrl2cap https://technet.microsoft.com/ja-jp/sysinternals/bb897578.aspx
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
# https://medium.com/crypto-currently/lets-build-the-tiniest-blockchain-e70965a248b | |
import hashlib as hasher | |
import datetime as date | |
class Block: | |
def __init__(self, index, timestamp, data, previous_hash): | |
self.index = index | |
self.timestamp = timestamp | |
self.data = data | |
self.previous_hash = previous_hash |
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
# 確認 | |
$ node -v | |
# homebrew をインストールしていない場合 | |
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
$ brew install nodebrew | |
$ nodebrew -v | |
$ nodebrew setup | |
$ nodebrew install-binary v8.9.4 | |
$ nodebrew use v8.9.4 | |
$ echo 'export PATH=$PATH:/Users/rakuishi/.nodebrew/current/bin' >> ~/.bashrc |
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
./gradlew :app:dependencies |
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 com.rakuishi.viewpager_lifecycle_sample; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; |
設定
→端末情報
→ビルド番号
を連打して、開発者向けオプション
を表示する設定
→開発者向けオプション
→OEMロック解除
とUSBデバッグ
を ON にする- 端末を USB 接続する
- 適当なシステムイメージをダウンロードする https://developer.android.com/about/versions/oreo/download.html#flashable-images
- zip ファイルを展開し、ダウンロードしたフォルダに移動する
cd angler-opr6.170623.013
$ adb reboot bootloader
$ fastboot flashing unlock
画面が遷移したら、電源ボタン(=YES)を押す
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
# -*- coding: utf-8 -*- | |
# $ ruby start-delegated-harvesting.rb 15064 | |
amount = ARGV[0].to_i | |
vestedBalance = 0 | |
days = 0 | |
if amount <= 10000 | |
puts 'Inputted amount is less than 10,000' | |
else |
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
# Create `debug.keystore` to get an OAuth 2.0 Client ID | |
$ keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
# Confirm keystore | |
$ keytool -v -list -keystore debug.keystore |
title | category | source |
---|---|---|
Trump's Inauguration Speech |
English |
朝日新聞, 2017年1月22日, 朝刊 |
Chief Justice Roberts, President Carter, President Clinton, President Bush, President Obama, fellow Americans, and people of the world: thank you.
We, the citizens of America, are now joined in a great national effort to rebuild our country and restore its promise for all of our people.
Together, we will determine the course of America and the world for many, many years to come.
We will face challenges. We will confront hardships. But we will get the job done.
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
(* | |
* Before running following codes, this script has to be allowed assistive access. | |
* System Preferences -> Security & Privacy -> Privacy -> Accessibility | |
*) | |
tell application "Finder" | |
set desktopBounds to bounds of window of desktop | |
set desktopWidth to item 3 of desktopBounds | |
set desktopHeight to item 4 of desktopBounds | |
end tell |