Skip to content

Instantly share code, notes, and snippets.

View yosh1's full-sized avatar
😃
LGTM

yosh1 yosh1

😃
LGTM
  • nyan-co
  • Tokyo, Japan
  • 10:42 (UTC -12:00)
View GitHub Profile
@yosh1
yosh1 / markov
Last active February 26, 2019 05:55
#!/user/bin/env python
# -*- coding: utf-8 -*-
from requests_oauthlib import OAuth1Session
import json
import sys
import MeCab
import random
import re
import urllib.parse
@yosh1
yosh1 / app.js
Last active December 25, 2018 05:44
GitHubへのコミットに応じてTwitterのユーザーネームを更新するWEBアプリを一週間で作ろうとした話 ref: https://qiita.com/yoshi1125hisa/items/9201aa3c7bd34fe9e3fe
const axios = Axios.create({
baseURL: 'https://api.github.com/',
headers: {
'Content-Type': 'application/json',
'User-Agent': 'lang-display'
},
responseType: 'json'
})
const getUniqueRepositories = events => {
@yosh1
yosh1 / file0.txt
Last active December 8, 2018 02:28
東京五輪ボランティア応募サイトを検証してわかったこと ref: https://qiita.com/yoshi1125hisa/items/3f60b801245996306146
media="screen and (min-width: 768px)"
Android Studio 開発環境セットアップ
 
数年前に比べれば簡単になりましたが、単にインストールだけで動くものではありません。色々設定があります。
 
目次
1. PCのシステム要件
2. Android Studioのインストール
3. SDKの追加インストール
(Option)Oracle JDK 設定
@yosh1
yosh1 / file0.txt
Created October 8, 2018 04:37
QRコードやバーコードを表示するときに画面の明るさを最大にする ref: https://qiita.com/yoshi1125hisa/items/de6e09bdfec1dafccec6
WindowManager.LayoutParams layoutParams = getWindow().getAttributes();
layoutParams.screenBrightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_FULL;
getWindow().setAttributes(layoutParams);
@yosh1
yosh1 / file0.txt
Last active October 7, 2018 11:10
Pythonで規則性のある数値を読み込み→行列に変換する方法 ref: https://qiita.com/yoshi1125hisa/items/682757cdbeb4502e6aca
1
2
3
4
5
6
7
8
9
1
@yosh1
yosh1 / index.html
Created September 25, 2018 03:20
JavaScriptを使用しないでページをリロードする ref: https://qiita.com/yoshi1125hisa/items/71b3f183636b6540e459
<meta http-equiv="refresh" content="5" >
<!-- 5秒に一度リロード -->
@yosh1
yosh1 / file0.css
Created September 25, 2018 02:09
HTMLでli要素のリストマークを消す方法 ref: https://qiita.com/yoshi1125hisa/items/3394e45e8640ff24a615
ul {
list-style: none;
}
@yosh1
yosh1 / shell
Created September 9, 2018 08:56
Shellで超簡単にグローバルIPを確認する方法 ref: https://qiita.com/yoshi1125hisa/items/141e1cb79a118449a139
$ curl globalip.me
@yosh1
yosh1 / MainActivity
Last active July 11, 2018 05:01
背景クリック時にソフトウェアキーボードを隠す方法 ref: https://qiita.com/yoshi1125hisa/items/caf4e8127b8082f313e0
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
relativeLayout = findViewById(R.id.relativeLayout);
relativeLayout.setOnClickListener(this);
editText = findViewById(R.id.editText);
editText.setOnFocusChangeListener(new View.OnFocusChangeListener() {