- https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs からGistPadをインストール
- Github にログイン
This file contains 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
$ # see also https://qiita.com/fukuda_fu/items/463a39406ce713396403 | |
$ brew info openssl | |
openssl@1.1: stable 1.1.1g (bottled) [keg-only] | |
Cryptography and SSL/TLS Toolkit | |
https://openssl.org/ | |
/usr/local/Cellar/openssl@1.1/1.1.1g (8,059 files, 18MB) | |
Poured from bottle on 2020-06-08 at 09:27:05 | |
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl@1.1.rb | |
==> Caveats | |
A CA file has been bootstrapped using certificates from the system |
This file contains 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
/* for insert */ | |
insert into articles (title) values ('insert_test'); | |
select * from articles; | |
select * from trigger_sample; | |
/* for udpate */ | |
update articles set title = 'update_test' where id = 1; | |
select * from articles; | |
select * from trigger_sample; |
This file contains 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
Style/FrozenStringLiteralComment: | |
Enabled: false | |
Metrics/BlockLength: | |
Max: 25 | |
Exclude: | |
- "Vagrantfile" |
This file contains 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
location / { | |
# preflightに対するレスポンス指定 | |
if ($request_method = 'OPTIONS') { | |
add_header Access-Control-Allow-Origin '*'; | |
add_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE'; | |
add_header Access-Control-Allow-Headers 'Origin, Authorization, Accept, Content-Type'; | |
add_header Access-Control-Max-Age 3600; | |
add_header Content-Type 'text/plain charset=UTF-8'; | |
add_header Content-Length 0; |
This file contains 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
location ~* ^/(assets|files|robots\.txt) { } | |
location /app { | |
try_files $uri $uri/ /app/index.php?/$request_uri; | |
} | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; |
This file contains 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
/** | |
* リスト間の類似度の計算処理 | |
* | |
* @param list1 リスト1 | |
* @param list2 リスト2 | |
* @return 類似度 1.0~0.0の間で値を返却 | |
*/ | |
private double calcSimilarity(List<Double> list1, List<Double> list2) { | |
int length = Math.min(list1.size(), list2.size()); |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_pressed="true"> | |
<shape android:shape="rectangle"> | |
<!-- 背景色 --> | |
<solid android:color="#EBEBEB"/> | |
</shape> |
This file contains 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
function getCookie(name) { | |
var result = null; | |
var cookieName = name + '='; | |
var allcookies = document.cookie; | |
var position = allcookies.indexOf( cookieName ); | |
if( position != -1 ) { | |
var startIndex = position + cookieName.length; | |
This file contains 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
String userAgent = webView.getSettings().getUserAgentString(); | |
webView.getSettings().setUserAgentString(userAgent + "追加したい項目"); |