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
from pandas.plotting import scatter_matrix | |
scatter_matrix(lego_df[['pieces', 'us_price', 'owner', 'want_it']], | |
figsize=(8, 8)) |
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
npm install -g appdmg |
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
[params] | |
links = [ | |
["Google", "https://google.com"], | |
["Qiita", "https://qiita.com"], | |
] |
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
#!/usr/bin/env python | |
# Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6 | |
# Python3 http.server for Single Page Application | |
import urllib.parse | |
import http.server | |
import socketserver | |
import re | |
from pathlib import Path |
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
plt.style.use('ggplot') | |
from matplotlib.font_manager import FontProperties | |
from matplotlib import rcParams | |
# フォントパスを指定 .ttf 形式でないと駄目な模様, 関連:https://github.com/matplotlib/matplotlib/pull/3912 | |
fp = FontProperties(fname='/Library/Fonts/Osaka.ttf', size=14) | |
# get_name() で 'Osaka' が返ってきています。メソッドの代わりに = 'Osaka' としてもOK | |
rcParams['font.family'] = fp.get_name() |
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
``` | |
async.each(data, function(targetUser, cb) { | |
if (targetUser.email_verified) { | |
var aryTmp = user.user_id.split('|'); | |
var provider = aryTmp[0]; | |
var targetUserId = aryTmp[1]; | |
request.post({ | |
url: userApiUrl + '/' + targetUser.user_id + '/identities', | |
``` |
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
import ejs from 'gulp-ejs'; | |
gulp.task('ejs', () => { | |
var json = JSON.parse(fs.readFileSync("./src/html/_layout/var.json")); | |
gulp.src(['./src/html/_page/**/*.ejs']) | |
.pipe(ejs(json, {"ext": ".html"})) // "ext" の値を指定 | |
.pipe(gulp.dest('./dist/html/')); | |
}); |
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
contract proofOfBook { | |
mapping(string => uint) books; | |
mapping(address => Log) logs; | |
struct Log { | |
string isbn; | |
uint date; | |
uint rate; | |
} |
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
type Member struct { | |
Number int64 `db:"number"` | |
Name string `db:"name"` | |
} | |
members := []Member{} | |
members = append(members, Member{10, "Lionel"}) | |
members = append(members, Member{9, "Luis"}) | |
fmt.Println(members) // [{101 Lionel true} {102 Luis false}] |
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
npm install babel-plugin-mjsx --save-dev |