Skip to content

Instantly share code, notes, and snippets.

View Lyuji282's full-sized avatar
🎯
Focusing

Arthur Lawrence Lyuji282

🎯
Focusing
View GitHub Profile
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")
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):
@Lyuji282
Lyuji282 / docker-compose.yml
Created December 23, 2019 13:06 — forked from linuxsimba/docker-compose.yml
docker-compose for MongoDB and Mongoose UI
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
version: '3'
services:
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=password
phpmyadmin:
image: phpmyadmin/phpmyadmin
pip install virtualenv
virtualenv -p python3 [env_name]
activate [env_name]/bin/activate
deactivate
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);
.reflection {
margin: 0 auto;
position: relative;
overflow: hidden;
background-color: white;
}
.reflection::after {
content: "";
display: block;
ENV=Local
APP_NAME=
PORT=
AUTH_KEY=
KEY_PAIR=
SIZE=
INSTANCE_TYPE=t2.small
#!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
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