Skip to content

Instantly share code, notes, and snippets.

View sucream's full-sized avatar
💤

Namsoo Hong sucream

💤
View GitHub Profile
@sucream
sucream / gist:63fe0516a73d0ffe50582193f5cb3350
Created January 24, 2024 04:41
pyenv local with poetry

Use pyenv local

# Install python version if you need.
# pyenv install 3.11
pyenv local 3.11

Set poetry config for env

poetry config virtualenvs.prefer-active-python true
@sucream
sucream / main.dart
Last active September 24, 2022 06:31
flutter constraints
import 'package:flutter/material.dart';
void main() => runApp(const HomePage());
const red = Colors.red;
const green = Colors.green;
const blue = Colors.blue;
const big = TextStyle(fontSize: 30);
//////////////////////////////////////////////////
@sucream
sucream / main.py
Created August 5, 2022 17:35
adb로 문자 메시지 읽어오는 파이썬
import subprocess
import re
import datetime
from pprint import pprint
def get_sms_list():
# 읽지않은 메시지만 출력
unread_sms = ['adb', 'shell', 'content', 'query', '--uri', 'content://sms/inbox', '--projection', 'person:read:date:address:link_url:subject:body', '--where', 'read=0', '--sort', 'date']
# 모든 메시지 출력