Skip to content

Instantly share code, notes, and snippets.

View ZZANZU's full-sized avatar
:octocat:
냅다 박는 중

Chanjoo Lee ZZANZU

:octocat:
냅다 박는 중
View GitHub Profile
@ZZANZU
ZZANZU / use-git-and-git-flow.adoc
Created June 24, 2019 13:42 — forked from ihoneymon/use-git-and-git-flow.adoc
git 을 기반으로 git-flow를 사용하여 애플리케이션 배포버전을 관리하자.

GIT을 기반으로 한 프로젝트 개발프로세스

깃을 사용합시다. 깃을 쓰자. 깃을 쓰란 말야!!

  • SVN은 변경이력이 많아질수록 속도가 느리지.

    • 커밋 및 처리속도가 빠르다. 변경이력이 많이 축적되어 있어도 속도저하가 거의 없다.

  • 커밋찍기가 어렵다.

🌞 Morning 289 commits █████▋░░░░░░░░░░░░░░░ 27.3%
🌆 Daytime 481 commits █████████▌░░░░░░░░░░░ 45.5%
🌃 Evening 85 commits █▋░░░░░░░░░░░░░░░░░░░ 8.0%
🌙 Night 203 commits ████░░░░░░░░░░░░░░░░░ 19.2%
@ZZANZU
ZZANZU / AWSCertifiedDeveloperUnofficialStudyGuide.md
Created November 23, 2020 13:02 — forked from serithemage/AWSCertifiedDeveloperUnofficialStudyGuide.md
AWS 공인 개발자 - 어소시에이트 수험 가이드
@ZZANZU
ZZANZU / aws-study-resource.md
Created November 23, 2020 13:03 — forked from serithemage/aws-study-resource.md
AWS 학습 자료집

AWS 학습 링크집 시리즈

@ZZANZU
ZZANZU / aws_sns_example.py
Created August 5, 2022 15:04
AWS SNS를 이용한 푸시 메세지 전송 로직 예시
message_template = "{ \"notification\": { \"body\": \"" + {푸시 메세지 내용} + "\", \"title\":\"" + {푸시 메세지 제목} + "\" }}"
message = {
'GCM': message_template # Firebase Cloud Messaging을 이용함.
}
message = json.dumps(message)
response = platform_endpoint.publish(
TargetArn=endpoint_arn, # 푸시 메세지를 받을 기기
MessageStructure='json',
Message=message # 푸시 메세지의 내용
client = boto3.client('sns')
resource = boto3.resource('sns')
async def create_endpoint_arn(token):
try:
response = client.create_platform_endpoint(
PlatformApplicationArn=config.SNS_PLATFORM_APPLICATION_ARN,
Token=token
)
import json
import boto3
resource = boto3.resource('sns')
def lambda_handler(event, context):
body = json.loads(event['body']) # 서비스에서 전달한 데이터
endpoint_arn = body['endpoint_arn'] # 클라이언트 기기의 endpointArn
{
"Version": "2012-10-17",
"Id": "ExamplePolicy01",
"Statement": [
{
"Sid": "ExampleStatement01",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:user/Dave"
},
class SplashActivity : AppCompatActivity() {
private lateinit var viewModel: SplashViewModel
private lateinit var binding: ActivitySplashBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.activity_splash)
viewModel = ViewModelProvider(this).get(SplashViewModel::class.java)
@ZZANZU
ZZANZU / ExampleAsyncTask.java
Last active March 26, 2023 10:50
ExampleAsyncTask.kt
class ExampleTask extends AsyncTask<String, Void, String> {
protected String doInBackground(String... inputString) {
/*
* ...
* ...
* 백그라운드에서 작동할 복잡한 처리 구현
* ...
* ...
*/