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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.keys import Keys as keys | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import Select | |
import json | |
import time | |
import re |
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 fs = require('fs') | |
const request = require('request') | |
const setting = JSON.parse(fs.readFileSync('./setting.json', 'utf8')) | |
const uids = setting['lineuids'] | |
const token = setting['linetoken'] | |
const options = { | |
uri: "https://api.line.me/v2/bot/message/push", | |
headers: { |
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 fs = require('fs') | |
const url = "https://scholar-ps.sas.jasso.go.jp/mypage/login_open.do" | |
const setting = JSON.parse(fs.readFileSync('./setting.json', 'utf8')) | |
const LOGIN_ID = setting['id'] | |
const LOGIN_PASS = setting['password'] | |
const UNIV_NUM = setting['univ_num'] | |
const now = new Date(); |
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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import Select | |
import json | |
import time | |
URL = "https://scholar-ps.sas.jasso.go.jp/mypage/login_open.do" |
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
#!/bin/bash | |
# decompress *.gz files under current directory, and add extension names ".csv" each of them. | |
for f in `find . -name '*.gz'`; | |
do | |
name=${f%.gz}; | |
gzip -d ${name}.gz; | |
mv ${name} ${name}.csv; | |
done |
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
package com.example.multithread; | |
public class Main { | |
public static void main(String[] args) { | |
MultiThread mt1 = new MultiThread(1); | |
MultiThread mt2 = new MultiThread(2); | |
MultiThread mt3 = new MultiThread(3); |
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 | |
# https://circleci.com/docs/2.0/deployment-integrations/#aws | |
# $ circleci config validate | |
# $ circleci local execute -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY | |
jobs: | |
build: | |
docker: | |
- image: paperlefthand/docker-plantuml |
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
#!/bin/bash | |
PLANTUML_PATH=$PWD/uml/plantuml.jar | |
for d in `find $PWD/uml -name '*.uml'` | |
do | |
java -jar $PLANTUML_PATH $d -charset UTF-8 | |
done |
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
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
func main() { | |
wg := &sync.WaitGroup{} | |
c := make(chan int, 10) |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
setTimeOut(3) | |
} |
NewerOlder