This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "요청수", | |
"x": [ | |
{ | |
"name": "요청수", | |
"x": [ | |
1690815600000, | |
1690819200000, | |
1690822800000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================== | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.hackerrank.com/challenges/fp-hello-world | |
def f() = println("Hello World") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
NewerOlder