require 'prime'
prime_num = 120
Prime.each(120){|a| puts a}
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
ds | |
fafsd | |
fdsa | |
afsda |
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
const puppeteer = require('puppeteer'); | |
const tweetText = process.argv[2] | |
const twitterId = process.argv[3] | |
const twitterPassWord = process.argv[4] | |
const tweet = async (tweetText) => { | |
try { | |
const browser = await puppeteer.launch({headless: true, slowMo: 100, args: ['--no-sandbox']}); | |
const page = await browser.newPage() |
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: | |
tweet: | |
image: morizyun/headless-chrome-puppeteer-japanese | |
container_name: tweet | |
working_dir: /tmp/tweet | |
tty: true | |
stdin_open: true | |
restart: always |
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
sudo yum -y update | |
sudo yum install -y git | |
sudo amazon-linux-extras install -y docker | |
sudo service docker start | |
git clone https://github.com/docker/dockercloud-hello-world.git |
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
docker-compose up -d | |
docker-compose up -d --build | |
docker-compose build --no-cache | |
docker kill $(docker ps -q);docker rm `docker ps -a -q` | |
docker kill $(docker ps -q);docker rm `docker ps -a -q`;docker-compose up -d | |
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.2" | |
services: | |
jupyter: | |
build: main | |
container_name: ${container_name} | |
tty: true | |
restart: always | |
stdin_open: true | |
ports: |
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
#!/usr/bin/env bash | |
jupyter contrib nbextension install --system & | |
declare -a jnl=( "collapsible_headings/main" ) | |
jnl+=( "codefolding/main" ) | |
jnl+=( "hinterland/hinterland" ) | |
jnl+=( "notify/notify" ) | |
jnl+=( "scratchpad/main" ) | |
jnl+=( "hide_input_all/main" ) |
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
gatsby new [PROJECT_NAME] | |
gatsby build | |
gatsby serve | |
gatsby test | |
yarn add firebase | |
yarn add gatsby-plugin-emotion @emotion/core @emotion/styled | |
{ |
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
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" | |
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) | |
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile | |
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile |
OlderNewer