Skip to content

Instantly share code, notes, and snippets.

@kyupark
kyupark / index.js
Created March 2, 2023 18:41 — forked from Kahtaf/index.js
Create a simple CORS proxy with Cloudflare Workers to bypass CORS restrictions in the browser. Perfect for local development.
/**
* Create a simple CORS proxy with Cloudflare Workers
* to bypass cors restrictions in the browser.
* Example Usage: https://<worker_subdomain>.workers.dev/https://postman-echo.com/get?foo1=bar1&foo2=bar2
*/
addEventListener('fetch', event =>
event.respondWith(handleRequest(event.request))
)
<html>
<head>
<title>daily-proverbs.html</title>
</head>
<body>
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.getDate();
</script>
<p>
@kyupark
kyupark / mobile-browser-detect.html
Last active June 21, 2018 16:10 — forked from braddown/mobile-browser-detect
Link for App Download - Mobile OS Detection and Redirect Download Link to Appropriate App Store
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Redirect</title>
<script type="text/javascript"> // <![CDATA[
// iPhone or iPad Version:
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i))) {
window.location = "https://itunes.apple.com/us/app/fkcc/id1364772616?mt=8";
}

Go to ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/

For macOS, download ncbi-blast-2.6.0+.dmg or similar

@kyupark
kyupark / indeed click all 'save job' links.js
Created January 28, 2017 18:44
Save them as two separate js bookmarklets on your bookmark bar
repeat 2 times
tell application "Safari"
set the URL of the front document to "http://www.google.com"
delay 1.5
do JavaScript "document.getElementsByClassName('button')[0].click()" in document 1
end tell
delay 0.5
end repeat

Engagement session ideas in Boston

  • Things to know

  • 둘만의 사진이므로 사람들 없을때 찍는게 좋은데 새벽이나 아침이면 좋을듯

  • near Downtown within a mile

  • Charles river

  • Boston common

  • public garden

@kyupark
kyupark / Are Science and Faith in Conflict?.md
Last active December 16, 2015 11:38
Are Science and Faith in Conflict?
(define (fibo n)
(cond
((= n 0) 1)
((= n 1) 1)
(true (+ (fibo (- n 1)) (fibo (- n 2))))
)
)
(define (sumofint n)
(cond