일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- Google Cloud SQL
- 라즈베리파이
- 명령프롬프트
- 웹크롤링
- 고대비
- 팬홀더
- 리액트강의
- CPU소켓
- Google Cloud Platform
- SMB
- 구글 클라우드 플랫폼
- Docker
- raspberry pi
- beautifulsoup
- 비쥬얼 스튜디오
- Django
- 야간
- 색상반전
- CPU팬홀더
- K디지털기초역량훈련
- 게임으로놀면서웹사이트만들기
- 안구보호
- HTML Parse
- 리스트뷰
- 데이원컴퍼니
- 동적
- GCP
- 어두운
- 국비지원교육
- pycharm
- Today
- Total
목록전체 글 (50)
뚝딱쓱삭
1.마우스 이벤트 http://www.w3schools.com/jsref/obj_mouseevent.asp 클릭 더블클릭 마우스를 올리면 이벤트작동 2.키보드 이벤트 3.이벤트 핸들링 {{ count }} 마우스를 올려봐! 그만! 여기서부터 다시 시작!
참고 : medium.com/swlh/build-your-first-rest-api-with-django-rest-framework-e394e39a482c 1. Django Rest Frame Work를 설치한다. pip install djangorestframework 2. settings.py에 설정한다. 1 2 3 4 5 INSTALLED_APPS = [ # All your installed apps stay the same ... 'rest_framework', ] Colored by Color Scripter 3. serializers.py 파일 작성 1 2 3 4 5 6 7 8 from rest_framework import serializers from .models import MyMode..
참고 : developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Authentication Django Tutorial Part 8: User authentication and permissions Excellent work — you've now created a website that library members can log in into and view their own content and that librarians (with the correct permission) can use to view all loaned books and their borrowers. At the moment we're still just viewing c devel..
1. Field생성 시 주요 argument max_length help_text : 도움말 verbose_name : UI상에 나오는 이름 default : 기본값 null : True/False blank : True/False, blank허용여부 (필요시 null=True와 같이 쓰이기도) choices : 선택가능한 값 primary_key : True일 경우 이 값을 primary key로 만듬 2. Field Type docs.djangoproject.com/en/3.0/ref/models/fields/#model-field-types CharField : 고정길이 문자열. max_length를 반드시 할당해줘야함 TextField : 긴 텍스트 IntegerField : 정수 DateFiel..
출처 : https://www.quora.com/Whats-the-easiest-way-to-recursively-get-a-list-of-all-the-files-in-a-directory-tree-in-Python 1. os.listdir() 1 2 3 4 5 6 7 8 9 10 11 12 def traverse(dirpath) for item in os.listdir(dirpath): #item은 폴더거나 파일이거나 둘중 하나 abspath = os.path.join(dirpath, item) try: if os.path.isdir(abspath): #폴더인경우 traverse(abspath) else: #파일인 경우 dosomething(dirpath, item) except FileNotFoun..
보호되어 있는 글입니다.
테두리 추출용 XDoG필터 구현한 파이썬3용 코드 출처 : https://blog.csdn.net/qq_27879381/article/details/72718135 XDoG:一种快速简洁的图像边缘提取器_Python_icmll-CSDN博客 引言 前段时间由于做Auto-painter(经常抽风会坏掉的demo、很卡常常进不去的文章)的项目,需要生成一大堆训练集,就是一张彩色的图片和它的线条图(sketch),一些现成的什么边缘提取算子的效果感觉都不太好用,机智的我找寻到了一种叫做XDoG的边缘提取算子,并且用matlab和python都进行了实现。效果如下: Figure 1. sketch Figure 2. orginal picture 基本原理 基本就是参照谷歌2012年的的一篇叼叼叼的论文:XDoG: An eXtended dif blog.csdn..