본문 바로가기 메뉴 바로가기

민호.닷컴

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

민호.닷컴

검색하기 폼
  • 분류 전체보기 (105)
    • 소소한일상 (7)
    • 관심폭발 (5)
    • 공부합시다 (47)
      • ionic (2)
      • php (16)
      • express (2)
      • python (5)
      • Golang (4)
    • 비밀이여 (0)
    • 갑자기 문뜩 (5)
    • What did u do today (0)
  • 방명록

2020/05 (5)
Flask RESTful 시작하기

api.py from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': 'world'} api.add_resource(HelloWorld, '/') if __name__ == '__main__': app.run(debug=True) 실행하기 $ python api.py * Running on http://127.0.0.1:5000/ * Restarting with reloader #파이참 사용시 .html 사용으로 rest api test 할 수 있다. # helloworld.h..

공부합시다/python 2020. 5. 21. 15:07
Array를 Object로 변경하기

가끔 사용하다 보면 특히 API로 작업할 경우 결과를 Object로 전달해 줘야 할 때가 있다. 그럴 때 간단하게 형을 선언해주는 것 만으로도 변경이 가능하다. 참조 : https://www.lesstif.com/php-and-laravel/php-26083746.html PHP 배열을 오브젝트 변환 www.lesstif.com

공부합시다/php 2020. 5. 20. 14:09
php 정규식 테스트

https://www.phpliveregex.com/#tab-preg-match PHP Live Regex i case insensitive m treat as multi-line string s dot matches newline x ignore whitespace in regex A matches only at the start of string D matches only at the end of string U non-greedy matching by default www.phpliveregex.com

공부합시다/php 2020. 5. 19. 11:32
zsh, oh-my-zsh 터미널 home, end 안될 때

맥os 카탈리나부터 기본 쉘이 zsh로 바뀌면서 기존에 잘 사용했던 home, end키가 먹히지 않는다. 생각없이 사용하고 있다 안되니 불편하구만 특이하게 vim이나 다른 곳에서는 사용이 가능한게 zsh에서 안되는 것 같아 찾아보니 비슷한 증상으로 해결방법이 있다. zshrc에 아래 코드 입력해주면 정상적으로 사용할 수 있다. vi ~/.zshrc #home end 안될 때 bindkey "\033[1~" beginning-of-line bindkey "\033[4~" end-of-line https://yumere.tistory.com/95 zsh, oh-my-zsh에서 home/end 키가 안될 때 그냥 개인 기록용... 환경: Ubuntu 16.04 Xshell 을 이용한 ssh 연결 zsh she..

카테고리 없음 2020. 5. 13. 08:23
mysql 조회 후 외부에 결과파일 생성하기

https://www.lesstif.com/dbms/mysql-client-query-csv-text-54951965.html MySQL client query 결과를 csv 나 text 파일로 저장 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement www.lesstif.com SELECT order_id,product_name,qty FROM orders INTO OUTFILE '/tmp/orders.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' 파일 생성은 된 ..

카테고리 없음 2020. 5. 12. 11:50
이전 1 다음
이전 다음
공지사항
  • 오예 도메인 주소 변경
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 코드스쿨
  • 코드전쟁!@
  • 변수명짓기
  • PHP-GRAPHQL
  • 해커랭크
  • excaildraw
TAG
  • MySQL
  • laravel-test
  • addMonthWithoutOverflow
  • 메일
  • aaa패턴
  • 정의
  • l5-swagger
  • vim
  • password-manager
  • 컨테이너내에서 메일 발송하기
  • l5-swagger-response
  • addMonth
  • msmtp
  • graphql-php
  • 자바스크립트
  • django
  • graphql
  • php
  • laravel-kafka
  • Laravel
  • bitwarden-cli
  • redis
  • observer 매개변수 전달하기
  • exception-test
  • Python
  • POP3
  • eloquent-observer
  • 테스트_다중트랜잭션
  • 정규식
  • 라라벨
more
«   2020/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바