Skip to content

Instantly share code, notes, and snippets.

View jiyeonseo's full-sized avatar
🧀
Say cheese 🧀

Cheese jiyeonseo

🧀
Say cheese 🧀
View GitHub Profile
@jiyeonseo
jiyeonseo / fp-hello-world.scala
Created September 4, 2016 14:15
Hello World
// https://www.hackerrank.com/challenges/fp-hello-world
def f() = println("Hello World")
@jiyeonseo
jiyeonseo / migration_post.sh
Created January 12, 2019 15:21
migration_post.sh
#!/bin/bash
for entry in "$PWD"/blog/*
do
writeAt=$(basename $entry | awk -F'[-.]' '{print $1"-"$2"-"$3}') # extract data from file name
dateFormat='date: '$writeAt'' # date string aligned with markdown format
printf '%s\n' H 4i "$dateFormat" . wq | ed -s $entry # insert date string.
done
@jiyeonseo
jiyeonseo / for spark AR
Created July 23, 2019 10:19
toggle_script.js
//==============================================================================
// Welcome to scripting in Spark AR Studio! Helpful links:
//
// Scripting Basics - https://fb.me/spark-scripting-basics
// Reactive Programming - https://fb.me/spark-reactive-programming
// Scripting Object Reference - https://fb.me/spark-scripting-reference
// Changelogs - https://fb.me/spark-changelog
//==============================================================================
// How to load in modules
set srcFile to ((path to desktop) as text) & "dialog.txt"
set lns to paragraphs of (read file srcFile as «class utf8»)
repeat with ln in lns
my stringToClipboard(ln)
tell application "KakaoTalk" to activate
tell application "System Events"
keystroke "v" using command down
key code 36
delay 1.5
@jiyeonseo
jiyeonseo / kakao_local_api.py
Last active September 2, 2020 02:11
kakao local api
import requests
import sys
'''
$ python kakao_local_api.py {query}
'''
# curl -v -X GET "https://dapi.kakao.com/v2/local/search/keyword.json?category_group_code=BK9&page=2" \
# --data-urlencode "query=카카오" \
# -H "Authorization: KakaoAK kkkkk"
@jiyeonseo
jiyeonseo / send_mail.py
Created July 5, 2023 02:31
simple test mail sender
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
# Email configuration
sender_email = "[email protected]"
receiver_email = "[email protected]"
password = "enter user password"
subject = "Test Email@!!@@@!"
body = "This is a test email."
[
{
"name": "요청수",
"x": [
{
"name": "요청수",
"x": [
1690815600000,
1690819200000,
1690822800000,