Skip to content

Instantly share code, notes, and snippets.

View shsunmoonlee's full-sized avatar

Seunghun Sunmoon Lee shsunmoonlee

View GitHub Profile
@shsunmoonlee
shsunmoonlee / yc-jobs-list.json
Created March 16, 2024 13:00
yc-jobs-list.json
[
{
"companyName": "One Month",
"companyDescription": "One Month's affordable online bootcamps teach people how to code in just one month. Topics include Python, Ruby on Rails, JavaScript, and Front-end Development. For a full list of courses, visit https://onemonth.com/courses.",
"jobName": "Full Stack Tech Lead // Web3 Chat App (Console.xyz) ",
"website": "onemonth.com",
"jobLinkInYc": "https://www.workatastartup.com/jobs/55758",
"details": {
"info1": "Remote (New York City, NY)",
"info2": "fulltime",
@shsunmoonlee
shsunmoonlee / feathers_oauth_social_login.js
Last active July 23, 2023 11:35
Oauth2 Social login(Facebook, Google) not work on Feathers API backend server, React frontend.
====================
/* backend */
/* app.js */
const path = require('path');
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const helmet = require('helmet');
const logger = require('winston');
@shsunmoonlee
shsunmoonlee / async-http.js
Last active June 26, 2021 17:31
How to asynchronously use nested http.get request using native node.js method.
/*
* Complete the function below.
* Instead of returning the answer, log the answer to the console.
* https://jsonmock.hackerrank.com/api/countries/search?name=
*/
function getCountries(s, p) {
let answer = 0;
const https = require("https");
let base_url = `https://jsonmock.hackerrank.com/api/countries/search`;
@shsunmoonlee
shsunmoonlee / mongoimport
Created January 7, 2019 08:18
import multiple json files from the folder in linux, mac for mongodb using mongoimport
cd jsonfilesfolder
ls -1 *.json | while read jsonfile; do mongoimport -d shop --file $jsonfile --type json; done
@shsunmoonlee
shsunmoonlee / example-landmark.json
Created August 17, 2020 19:40
example-landmark.json
{
"IMG_20200709_181039_2.jpg": {
"width": 3024,
"height": 4032,
"fullFaceDescriptions": [
{
"detection": {
"_imageDims": { "_width": 3024, "_height": 4032 },
"_score": 0.756403923034668,
"_classScore": 0.756403923034668,
@shsunmoonlee
shsunmoonlee / gist:c10cc89b07fa752fac0222fc9ca4eb9e
Created July 4, 2020 06:44
blocket automated find tenant like script
let clickButton = () => {
let button = document.querySelector('#app > div > div.FocusContainer > div > div > div.MatchingUserEvaluationHandler > div.Submit > div > div.button.apply')
button.click()
}
let intervalID
let startAutomaticInterval = (seconds) => {
if(intervalID) { clearTimeout(intervalID) }
intervalID = setInterval(clickButton, seconds*1000)
}
@shsunmoonlee
shsunmoonlee / LRU Cache.js
Created February 4, 2020 13:39
Classic LRU Cache in JavaScript. Goal: Real World Implementation
function ListNode(key, value) {
this.value = value
this.key = key
this.next = this.prev = null
}
/**
* @param {number} capacity
*/
var LRUCache = function(capacity) {
@shsunmoonlee
shsunmoonlee / LRU Cache.js
Created February 4, 2020 13:39
Classic LRU Cache in JavaScript. Goal: Real World Implementation
function ListNode(key, value) {
this.value = value
this.key = key
this.next = this.prev = null
}
/**
* @param {number} capacity
*/
var LRUCache = function(capacity) {
@shsunmoonlee
shsunmoonlee / spark-ar-firebase.js
Last active October 15, 2019 10:21
Spark AR Firebase sharing the state tutorial.
// -- Firebase
const Firebase = (function () {
// -- Modules
const D = require("Diagnostics");
const N = require("Networking");
// -- Public
{
"events": {
"restart": "kill-port 3010",
"crash": "kill-port 3010"
},
"delay": "1500"
}