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
a = document.getElementsByClassName("html5-video-info-panel-content")[0] | |
document.getElementsByClassName("html5-video-info-panel-content")[0].setAttribute("style","display: block") | |
b = a.getElementsByTagName("span")[0] | |
c = b.textContent | |
d = "https://www.youtube.com/watch?v=" + c.match(/[^\s]+/g)[0] | |
window.open(d) | |
document.getElementsByClassName("html5-video-info-panel-content")[0].setAttribute("style","display: none") |
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
import numpy as np | |
import nagisa | |
from gensim import corpora, matutils | |
from gensim import models | |
from gensim.corpora import Dictionary | |
from gensim.models.ldamodel import LdaModel | |
def discover_latent_topics(texts, num_topics=3, is_tfidf=True): |
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
version: '2' | |
networks: | |
mongodb_net: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
# Change this subnet range if it conflicts with your personal/work network | |
- subnet: 192.168.213.0/24 |
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
version: '3' | |
services: | |
mysql: | |
image: mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=password | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin |
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
pip install virtualenv | |
virtualenv -p python3 [env_name] | |
activate [env_name]/bin/activate | |
deactivate |
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
import React,{ useState, useEffect } from "react"; | |
import styled from "@emotion/styled"; | |
import Zoom from "react-reveal"; | |
import Grid from "@material-ui/core/Grid"; | |
import Button from "@material-ui/core/Button"; | |
const Component = () => { | |
const [value, setValue] = useState(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
.reflection { | |
margin: 0 auto; | |
position: relative; | |
overflow: hidden; | |
background-color: white; | |
} | |
.reflection::after { | |
content: ""; | |
display: block; |
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
ENV=Local | |
APP_NAME= | |
PORT= | |
AUTH_KEY= | |
KEY_PAIR= | |
SIZE= | |
INSTANCE_TYPE=t2.small |
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
#!make | |
include .env | |
export $(shell sed 's/=.*//' .env) | |
start-local: | |
docker-compose -f docker-compose.local.yml up -d | |
start-local-build: | |
docker-compose -f docker-compose.local.yml up -d --build |
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
vpcを作成する際はできるだけ、ブロック数を下げて節約する 例 10.0.0.0/27 | |
分割数を考えて、余分のできないようにsubnetsを作成する(リージョンごと) | |
例: | |
10.0.0.0/28 in a region | |
10.0.0.128/28 in c region | |
・route table | |
・internet gateway |
NewerOlder