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 | |
import time | |
from selenium.webdriver.common.keys import Keys | |
driver = webdriver.Chrome(executable_path='./chromedriver') | |
driver.get('https://jp.trade.highlow.net/') | |
login_box = driver.find_element_by_css_selector( | |
'#header > div > div > div > div > div > span > span > a:nth-child(5)') |
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 sys | |
import os | |
from selenium import webdriver | |
from selenium.webdriver import Chrome, ChromeOptions | |
import pandas as pd | |
import time | |
"""*************************************** | |
初期設定 | |
***************************************""" |
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 pynder | |
session = pynder.Session(facebook_id, facebook_auth_token) | |
session.matches() # get users you have already been matched with | |
session.update_location(LAT, LON) # updates latitude and longitude for your profile | |
session.profile # your profile. If you update its attributes they will be updated on Tinder. | |
users = session.nearby_users() # returns a iterable of users nearby |
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 pynder | |
session = pynder.Session('Facebookのアクセストークン') | |
friends = session.get_fb_friends() | |
#緯度と経度を指定 | |
# Yokohama Station | |
LAT = 35.465786 | |
LON = 139.622313 | |
session.update_location(LAT, LON) |
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/(Username)/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="candy" | |
# Uncomment the following line to use case-sensitive completion. |
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
"""Google Cloud Speech API sample application using the REST API for batch | |
processing.""" | |
import argparse | |
import base64 | |
import json | |
from googleapiclient import discovery | |
import httplib2 | |
from oauth2client.client import GoogleCredentials |
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 random | |
questions = { | |
"strong": "Do ye like yer drinks strong?", | |
"salty": "Do ye like it with a salty tang?", | |
"bitter": "Are ye a lubber who likes it bitter?", | |
"sweet": "Would ye like a bit of sweetness with yer poison?", | |
"fruity": "Are ye one for a fruity finish?", | |
} |
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
for n in range(1, 100): | |
if n % 3 == 0 and n % 5 == 0: | |
print("FizzBuzz") | |
elif n % 3 == 0: | |
print("Fizz") | |
elif n % 5 == 0: | |
print("Buzz") | |
else: | |
print(n) |