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
set number "show line number | |
set ai "auto indent | |
set si "smart indent | |
"set cindent "c style indent | |
set shiftwidth=4 "sift line 2 | |
set softtabstop=4 | |
set tabstop=8 "tap line 2 | |
set ignorecase "When find, don't distinguish upper and lower case | |
set expandtab "change tab to space | |
set bs=indent,eol,start "use backspace |
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
compliments: { | |
day_sunny: [ | |
"Today is a sunny day", | |
"It's a beautiful day" | |
], | |
day_cloudy: [ | |
"day cloudy" | |
], | |
cloudy: [ | |
"cloudy" |
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
# main.py -- put your code here! | |
from pyb import UART | |
import time | |
pms = UART(4, 9600) | |
#change to passive mode | |
pms.write('\x42\x4D') | |
pms.writechar(225) #E1 | |
pms.write('\x00\x00\x01\x70') |
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 googleapiclient.discovery import build | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
try : | |
import argparse | |
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() | |
except ImportError: | |
flags = None |
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 datetime | |
import pytz | |
import urllib.request | |
import bill | |
import json | |
def get_api_date() : | |
standard_time = [2, 5, 8, 11, 14, 17, 20, 23] | |
time_now = datetime.datetime.now(tz=pytz.timezone('Asia/Seoul')).strftime('%H') | |
check_time = int(time_now) - 1 |
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 telegram.ext import Updater, CommandHandler | |
from telegram.ext import MessageHandler, Filters | |
from bill import login_data | |
import re | |
import os | |
import django | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' | |
django.setup() | |
print('jango setup') |