Skip to content

Instantly share code, notes, and snippets.

View JaehyunAhn's full-sized avatar

Jaehyun Ahn JaehyunAhn

View GitHub Profile
@jcheong0428
jcheong0428 / openface_shared.ipynb
Last active March 7, 2024 15:53
OpenFace_Shared.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
scalaVersion := "2.12.8"
scalacOptions ++= Seq(
"-Xfatal-warnings",
"-Ypartial-unification"
)
libraryDependencies += "org.typelevel" %% "cats-core" % "1.0.0"
libraryDependencies += "org.typelevel" %% "cats-effect" % "1.3.1"
libraryDependencies += "org.typelevel" %% "cats-effect-laws" % "1.3.1" % "test"
*/
@gaerae
gaerae / MySQL table into CSV file 1.sql
Last active July 15, 2022 05:36
MySQL Table의 데이터를 CSV 형태로 내보내기 방법에는 여러가지가 있습니다.어떤 방법으로만 해야된다가 아닌 상황에 맞게 사용하는게 좋을 거 같습니다.4 가지 예시입니다.
SELECT * FROM my_table
INTO OUTFILE 'my_table.csv'
CHARACTER SET euckr
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\n'
@iamssen
iamssen / rest.md
Created April 17, 2013 08:07
OAuth2 로 github 로그인 처리 단계별 처리...

Github OAuth 참고

우선 https://github.com/settings/applications 에서 Application 에 등록된 정보들 확인

로그인처리

  1. get https://github.com/login/oauth/authorize?client_id={client_id}&redirect_uri={http://...} 형태로 어플리케이션 등록 정보를 바탕으로 앱 승인 주소로 날려보냄
  2. get http://ssen.name/devlog?code=x1aa07b850cbf6eeba1a 과 같은 형태로 code 를 보내주게 됨
  3. 받은 코드를 사용해서 post https://github.com/login/oauth/access_token 로 정보를 요청
  • header Accept : application/json
  • param code : {받은 코드}