Skip to content

Instantly share code, notes, and snippets.

View yuda110's full-sized avatar
👩‍💻
work work work

Dahyun Yu yuda110

👩‍💻
work work work
View GitHub Profile
...
<p-field-group :label="name"
:invalid-text="nameInvalidText"
:invalid="!nameValidator.valid"
:required="true"
>
...
def find_pita():
for a in range(1, 1000):
for b in range(a+1, 1000):
c = 1000 - a - b
if a*a + b*b == c*c and a < b < c:
return a*b*c
from bs4 import BeautifulSoup
import lxml
import requests
eminem_video_info = {
'title':'',
'video_link':'',
'img_link':'',
'play_time':'',
'hits' : '',
#python3
def prime_factor(target) :
last_prime = 0
i = 2
while target != 1 :
while target % i == 0 :
last_prime = i
target //= i
i += 1
@yuda110
yuda110 / README-Template.md
Created December 3, 2018 14:34 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@yuda110
yuda110 / refactoring_coursera_2.py
Created November 24, 2018 01:36
dateutil.parser 있기 때문에 try/except 문 대신 그냥 import
# Not all systems have this so conditionally define parser
try:
import dateutil.parser as parser
except:
pass
#####
from dateutil import parser
# Not all systems have this so conditionally define parser
@yuda110
yuda110 / refactoring_coursera_1.py
Created November 24, 2018 01:26
사용하지 않는 모듈 import 삭제
import sqlite3
import time
import ssl
import urllib.request, urllib.parse, urllib.error
from urllib.parse import urljoin
from urllib.parse import urlparse
import re
from datetime import datetime, timedelta
###
def fino(n):
a = b
for i in range(n):
yield a
a, b = b, a+b
for x in fibo(100000):
print(x)
def foo(*args):
for arg in args:
print(arg)
foo(1, 2, 3, 4)
let editor = $('.CodeMirror')[0].CodeMirror;
// 혹은 let editor = CodeMirror.fromTextArea(document.getElementById('code'));
// readonly 부분 정하기
let readOnlyLines = [0, 1];
editor.on('beforeChange', function (cm, change) {
if (~readOnlyLines.indexOf(change.from.line)){
change.cancel();
}
});