Skip to content

Instantly share code, notes, and snippets.

View Lyuji282's full-sized avatar
🎯
Focusing

Arthur Lawrence Lyuji282

🎯
Focusing
View GitHub Profile
ds
fafsd
fdsa
afsda
require 'prime'
prime_num = 120
Prime.each(120){|a| puts a} 

official doc

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()
version: '3'
services:
tweet:
image: morizyun/headless-chrome-puppeteer-japanese
container_name: tweet
working_dir: /tmp/tweet
tty: true
stdin_open: true
restart: always
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
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
version: "3.2"
services:
jupyter:
build: main
container_name: ${container_name}
tty: true
restart: always
stdin_open: true
ports:
#!/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" )
gatsby new [PROJECT_NAME]
gatsby build
gatsby serve
gatsby test
yarn add firebase
yarn add gatsby-plugin-emotion @emotion/core @emotion/styled
{
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