Skip to content

Instantly share code, notes, and snippets.

View yosh1's full-sized avatar
😃
LGTM

yosh1 yosh1

😃
LGTM
  • nyan-co
  • Tokyo, Japan
  • 14:30 (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 => {
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 / file0.txt
Last active December 8, 2018 02:28
東京五輪ボランティア応募サイトを検証してわかったこと ref: https://qiita.com/yoshi1125hisa/items/3f60b801245996306146
media="screen and (min-width: 768px)"
@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 / file0.txt
Created July 6, 2018 06:34
npmが実行できなくて詰まった話(アンインストールから再インストールまで) ref: https://qiita.com/yoshi1125hisa/items/4db4e15840c4a5c27d03
$ npm install -g jsx
Unhandled rejection Error: EACCES: permission denied, open '/Users/UserName/.npm/_cacache/index-v5/3d/40/1fc7c6f64e0d481b6e19f1d1ebffb32265d1b9ef080c9667bdedb0df3612'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/UserName/.npm/_logs/2018-07-05T06_32_41_539Z-debug.log