Skip to content

Instantly share code, notes, and snippets.

View MaxMEllon's full-sized avatar
:octocat:
Enjoy

Kento TSUJI MaxMEllon

:octocat:
Enjoy
View GitHub Profile
export const FiledSet = ({ legendElement, children }: FieldSetProps) => (
<fieldset>
<legend>{legendElement}</legend>
{children}
</fieldset>
)
export default class MyDocument extends Document<{ tracking?: boolean; nonce: string }> {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx)
const dnt = ctx?.req?.headers['DNT'] ?? '0'
const tracking = dnt !== '1'
return { ...initialProps, tracking, nonce }
}
render() {
return (
app.prepare().then(() => {
server.get('*', (req, res) => {
req.nonce = crypto.randomBytes(2).toString('base64')
res.setHeader('Content-Security-Policy', '割愛')
handle(req, res)
})
})
npm-remove-interactive()
{
local k results
while out=$(
cat package.json \
| jq '.devDependencies * .dependencies | keys[]' \
| fzf --ansi --multi --no-sort --reverse --query="$q" \
--print-query --expect=ctrl-d); do
q=$(head -1 <<< "$out")
k=$(head -2 <<< "$out" | tail -1)
CC=clang LDFLAGS="-L${HOME}/.pyenv/versions/2.7.11/lib -L${HOME}/.pyenv/versions/3.6.2/lib -L${HOME}/.rbenv/versions/2.4.2/lib" ./configure --enable-multibyte --with-features=huge --enable-luainterp=dynamic --with-lua-prefix=/usr/local --enable-perlinterp=yes --enable-rubyinterp=yes --enable-python3interp=yes --enable-pythoninterp=yes --prefix=`brew --prefix` --disable-selinux --enable-terminal --with-ruby-command="${HOME}/.rbenv/versions/2.4.2/bin/ruby" --enable-fail-if-missing --enable-fontset --enable-tclinterp
https://youtube.com/watch?v=dUo3Gu4ku0I
https://www.youtube.com/watch?v=PF2OwmcAup4
https://www.youtube.com/watch?v=TkroHwQYpFE
https://soundcloud.com/dada-qada/eat-dream
https://soundcloud.com/sourlem/dubstep-shrine
https://www.youtube.com/watch?v=ZcoqR9Bwx1Y
https://www.youtube.com/watch?v=uD6Qzt1vjGM
https://www.youtube.com/watch?v=WQodvB3BkOg
https://www.youtube.com/watch?v=sIO0YaI94Ug
https://www.youtube.com/watch?v=Sa7N_3Nyctc
@MaxMEllon
MaxMEllon / index.js
Last active December 29, 2017 07:55
import { render } from 'react-dom'
import React from 'react'
import PropTypes from 'prop-types'
/**
* @example
*
* function App(props) {
* return (
* ...
statement = db.prepare('SELECT m.id, m.created_at, m.content,' <<
'u.id as uid, u.avatar_icon, u.display_name, u.name' <<
'FROM message m LEFT JOIN user u ON u.id = m.user_id' <<
'WHERE m.id > ? AND channel_id = ? ORDER BY m.id DESC LIMIT 100')
rows = statement.execute(last_message_id, channel_id).to_a
response = rows.map do |row|
{
id: row['id'],
date: row['created_at'].strftime("%Y/%m/%d %H:%M:%S"),
content: row['content'],

■ 問題設定

研究,および研究システムを実装していく上でのロードマップを立てる.

■ 概略総論

1~2週間単位で 研究 および 作業 のスケジュールを組む そのために,まず作業一覧を洗い出す.

● 研究のロードマップ