Skip to content

Instantly share code, notes, and snippets.

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

Cheese jiyeonseo

🧀
Say cheese 🧀
View GitHub Profile
[
{
"name": "요청수",
"x": [
{
"name": "요청수",
"x": [
1690815600000,
1690819200000,
1690822800000,
@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 = "sender@example.com"
receiver_email = "receiver@example.com"
password = "enter user password"
subject = "Test Email@!!@@@!"
body = "This is a test email."
@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"
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 / 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
@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 / 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 / fp-solve-me-first.scala
Created September 4, 2016 14:07
Solve Me First FP
// https://www.hackerrank.com/challenges/fp-solve-me-first
object Solution {
def main(args: Array[String]) {
println(io.Source.stdin.getLines().take(2).map(_.toInt).sum)
}
}
largest = None
smallest = None
while True:
inp = raw_input("Enter a number: ")
if inp == "done" : break
try :
num = int(inp)
if smallest is None : smallest = num
elif smallest > num : smallest = num
@jiyeonseo
jiyeonseo / gist:a0d3582b1176cede4b15
Created February 22, 2015 14:04
Assignment 4.6
def computepay(h,r):
if h > 40 :
pay = 40*r+(h-40)*r*1.5
else :
pay = h*r
return pay
hrs = raw_input("Enter Hours:")
rate = raw_input("Enter Rate:")
p = computepay(float(hrs),float(rate))