Skip to content

Instantly share code, notes, and snippets.

View chaewonkong's full-sized avatar

chaewonkong chaewonkong

View GitHub Profile
@chaewonkong
chaewonkong / class_inheritance.py
Created December 9, 2017 09:29
Class and inheritance
#General Features about computers
class Computer:
def __init__(self, model, cpu, ram, storage, os):
self.model = model
self.cpu = cpu
self.ram = ram
self.storage = storage
self.os = os
#Function that tell the features line by line
@chaewonkong
chaewonkong / caesar_cypher.py
Last active December 10, 2017 03:13
Caesar Cypher Encoder/Decoder
'''Caesar Cypher encoder/decoder
From input, this program will generate Caesar cypher(each alphabets of input will be changed 3 step forward alphabets
in alphabet order. It will print the outcome.
Then, the program will decode the generated Caesar cypher and print it.
The user can compare her/his original input to the printed outcome.
'''
@chaewonkong
chaewonkong / multiply_maximum.py
Last active December 10, 2017 04:34
For 4 digits of input, split into two double digits of numbers, which makes multiply of each other the biggest
'''Multiply Maximazer
Get 4 numbers as an input. Split into two double digits number that generates the maximum number
when they are multiplied by each other
'''
def Multiply_Max(numbers):
'''Sort the list reverse. Use indexing and make two double digits numbers a,b.
The biggest number and the smallest number should be accompanied wheareas, middle 2 numbers should also be accompanied
In order to calculate a*b, both a, b should be integers. change all the indexed to int.
@chaewonkong
chaewonkong / multi_line_input.py
Created December 11, 2017 14:57
Dealing with multi-line input by using EOFError
'''Dealing with Multi-line input
by using EOFError, unless the user press ctrl+d, the program will keep get inputs and store it in the list.
Finally the user press ctrl+d, all stored input in the list will printed line by line.
'''
contents = []
while True:
try:
line = input()
@chaewonkong
chaewonkong / factorial_calculator.py
Last active December 12, 2017 09:23
Factorial Calculator
'''Factorial Calculator
About input of an integer
print the outcome of factorial calculation.
'''
def factorial(n):
'''
Calculate outcome of n(n-1)(n-2)...1 about given number n.
if the input = 0, return 1 automatically.
@chaewonkong
chaewonkong / digits_generator.py
Last active December 14, 2017 14:09
Make the input number to be requested digits, by attaching additional '0's in front of the input number.
'''digits Generator
Change any kinds of input number into required digits of output.
Add '0' in front of the input number if needed, in proper times.
'''
def is_number(n):
'''Raise Error when input is not given as an integer.'''
try:
int(n)
@chaewonkong
chaewonkong / abbreviation.py
Created December 27, 2017 06:58
Abbreviate the input words by taking each first letter from each word, and return in uppercase
'''Abbreviation Generator
Take each first letter from at least two words of input and generate abbreviation.'''
def abbreviate(S):
'''
Abbreviate string S by taking first letters from each word in string S.
'''
abbreviation = S[0]
n = 0
@chaewonkong
chaewonkong / hogangnono.py
Created February 9, 2018 14:20
호갱노노 Scraper
'''"호갱노노" News Scraper
Scrape (title, date, url) from the google news search results for "호갱노노" within 1 week,
and create "hogangnono.csv" to contain the scraped data.
'''
import requests
import csv
from bs4 import BeautifulSoup
@chaewonkong
chaewonkong / weather_mail.py
Created February 18, 2018 09:22
Get outside temparature of seoul and send e-mail to recipients in mailing.csv to notify weather
'''Christmas E-mail Push Program
Push notice via e-mail when it comes to Christmas.'''
import csv
from bs4 import BeautifulSoup
import requests
import smtplib
@chaewonkong
chaewonkong / kindergarten.md
Last active September 21, 2018 07:05
kindergarten.md

유치원 앱 관련 인터뷰

누구를 대상으로 할 것인가?

  • 학부모를 대상으로 하게 되어도 쓰는 주체는 어린이집이다. 학부모가 원하는 알림장과 어린이집 운영자가 원하는 알림장은 서로 좀 다르다. (니즈가 다름) 어린이집 측에서는 모든 것을 다 오픈할 수 만은 없다.
  • 불특정 다수의 학부모를 받게 됨. 교육철학이 다른 학부모들도 받게 된다.
  • 어린이집이 주체가 되어 어린이집이 편하게 생각하는 앱이 필요하다.
  • 필요하긴 진짜 필요하다. 유망하다고도 생각한다.

앱 필요성