728x90 ๐ฅ๏ธํ๋ก ํธ์๋67 ์๋ฐ์คํฌ๋ฆฝํธ - ํ์ฌ script ํ๊ทธ ์ญ์ ํ๊ธฐ 2023. 4. 4. Jekyll - {{ }}, {% %} ์ฌ์ฉํ๊ธฐ (escape liquid template) Jekyll์์ ๋งํฌ๋ค์ด์ ์์ฑํ๋ ์ค liquid template ๋ฌธ๋ฒ์ ์ฌ์ฉ์ ํด ๊นํ๋ธ ํ์ด์ง์ ๋ํ๋ก์์ ํด๋ณด์๋๋ฐ ์ด์ํ๊ฒ ๊ฒฐ๊ณผ๊ฐ ์ถ๋ ฅ์ด ๋์ง ์์๋ค. ์๊ณ ๋ณด๋ Jekyll์์๋ ๋ฐ๋ก {% raw %} {% endraw %}๋ฅผ ์ฌ์ฉํด ์์ธ ์ฒ๋ฆฌ๋ฅผ ์์ผ์ค์ผ ํ๋ ๊ฒ์ด์๋ค. ์์ฑ ๋ฐฉ๋ฒ {% raw %} {{ example }} {% endraw %} {% raw %} {% example %} {% endraw %} ๊ฒฐ๊ณผ {{ example }} {% example %} ์ถ์ฒ: https://atomic0x90.github.io/jekyll/markdown/2019/06/08/escape-liquid-template.html atomic0x90(Yujun Han) c์ c++ ๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ ์ค๋ช .. 2023. 3. 7. ํ๋ก ํธ์๋ - ์ฌ์ดํธ๋งต ๋ง๋๋ ์ฌ์ดํธ(gloomaps.com) https://www.gloomaps.com/ GlooMaps - Visual Sitemap Tool Visual sitemaps made easy Start creating Watch video Create your visual sitemap on the go - easy peasy With GlooMaps it's really easy to create your own sitemaps fast and efficiently. Click a box to attach a child box, drag & drop to reorder or double clic www.gloomaps.com 2023. 3. 5. Jekyll - ๋น ๋ฅธ ์์, Docs https://jekyllrb-ko.github.io/docs/ Quickstart Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. jekyllrb.com 2023. 3. 3. ์๋ฐ์คํฌ๋ฆฝํธ - SMS ๋ฌธ์ ๋ณด๋ด๊ธฐ SMS๋ณด๋ด๊ธฐ location.href = sms:์์ ์๋ฒํธ?body=๋ณด๋ผ๋ฉ์ธ์ง; ์ถ์ฒ: https://ttowa.tistory.com/m/entry/JS-%EC%9B%B9Mobile%EC%97%90%EC%84%9C-SMS-%EB%AC%B8%EC%9E%90%EB%B3%B4%EB%82%B4%EA%B8%B0 [JS] ์น(Mobile)์์ SMS ๋ฌธ์๋ณด๋ด๊ธฐ 1.Android(์๋๋ก์ด๋) SMS๋ณด๋ด๊ธฐ location.href = sms:์์ ์๋ฒํธ?body=๋ณด๋ผ๋ฉ์ธ์ง; 2.IOS(์์ดํฐ) SMS๋ณด๋ด๊ธฐ location.href = sms:์์ ์๋ฒํธ&body=๋ณด๋ผ๋ฉ์ธ์ง; 3.Android & IOS ์๋ ๋ถ๊ธฐ ์ค์ ๋๋ฐ์ด์ค์์ ํ ์คํธ ํด ttowa.tistory.com 2023. 3. 2. Jekyll - ํ ๋ง ์ฌ์ดํธ ๋ชจ์ http://jekyllthemes.org/ Jekyll Themes jekyllthemes.org jamstackthemes.dev Jekyll Over 1000 themes and starters for Jamstack and static site generators. jamstackthemes.dev jekyllthemes.io Jekyll Themes – a curated directory Find the best Jekyll themes for your next project – a curated directory of themes, templates and resources for building Jekyll websites. jekyllthemes.io ์ถ์ฒ: https://jekyllrb-.. 2023. 3. 2. CSS - :before๋ฅผ ์ด์ฉํ ์ฑํ ์ฐฝ ๋งํ์ ๊ผฌ๋ฆฌ ๋ง๋ค๊ธฐ .parent { height: 20px; width: 100px; background-color: #080; position: relative; } .child { position: absolute; width: 80px; height: 200px; background-color: #008; left: 50%; /* note 50% */ top: 30px; margin-left: -20px; /* 2x your arrow size */ } .child:before { position: absolute; border-right: 10px solid transparent; border-bottom: 10px solid #008; border-left: 10px solid transparent; top: -.. 2023. 2. 5. ์๋ฐ์คํฌ๋ฆฝํธ - ๋ธ๋ผ์ฐ์ ํญ์ด ํ์ฑํ์ธ์ง ํ์ธํ๊ธฐ(document.hidden) if (document.hidden) console.log('๋นํ์ฑํ'); else console.log('ํ์ฑํ'); ์ถ์ฒ: https://stackoverflow.com/questions/1760250/how-to-tell-if-browser-tab-is-active How to tell if browser/tab is active Possible Duplicate: Is there a way to detect if a browser window is not currently active? I have a function that is called every second that I only want to run if the current page is in the stackoverflow.com 2023. 2. 5. ์ผ๋ ํธ๋ก - ์ฌ์ฉ์๋ก๋ถํฐ ์น ์บ , ๋ง์ดํฌ ๊ฐ์ ธ์ค๊ธฐ ์น ์บ , ๋ง์ดํฌ ๊ฐ์ ธ์ค๊ธฐ window.addEventListener('DOMContentLoaded', () => { navigator.getUserMedia({video: true, audio: true}, (localMediaStream) => { var video = document.querySelector('video') video.srcObject = localMediaStream video.autoplay = true }, (e) => {}) }) ์ฐธ๊ณ : [์น ์บ ๊ฐ์ ธ์ค๊ธฐ] https://stackoverflow.com/questions/38276409/electron-allowing-access-to-webcam 2022. 11. 7. ๋ฆฌ์กํธ - ์น ์์ผ(ws) ํต์ + useEffect์์ ์น ์์ผ(ws) ์ฌ์ฉ with useRef ws-server.js (์น ์์ผ ์๋ฒ์ธก) const WebSocketServer = require('ws').Server; const wss = new WebSocketServer({ port: 8080 }); wss.on('connection', function connection(ws) { ws.on('message', function message(data) { console.log('received: %s', data); }); ws.send('something'); }); index.js (๋ฆฌ์กํธ) import React, { useState ,useEffect, useRef} from 'react'; const [socketConnted, setSocketConnected] = useStat.. 2022. 11. 7. ๋ฆฌ์กํธ - ์์ฑ ๋๋๊ณ ๋์ ํ ์คํธ ์๋ก ๊ธฐ๋กํ๊ธฐ(react-speech-recognition) ์๋์ฒ๋ผ transcript๋ฅผ ์ถ๋ ฅํ๋ฉด ์ฌํ๊ป ๋งํ๋ ํ ์คํธ๋ค์ ๊ทธ๋๋ก ๊ฐ์ ธ์ค๋ ๊ฒ ์๋๋ผ, ๋ง์ ๋๋ ๋ค์ ๋ค์ ๋ง์ ํ๋ฉด ์ด์ ํ ์คํธ๋ฅผ ์ง์ฐ๊ณ ๋ค์ ๊ธฐ๋กํ๋ ๋ฐฉ์ const [subtitle, setSubtitle] = useState(''); const { transcript, interimTranscript, resetTranscript, browserSupportsSpeechRecognition, finalTranscript, } = useSpeechRecognition(); useEffect( ()=>{ console.log('๋ง์ดํฌ ๋ นํ ์์'); SpeechRecognition.startListening({continuous: true}); }, [] ); useEffect( ()=>{ i.. 2022. 11. 6. ์๋ฐ์คํฌ๋ฆฝํธ - text to speech(text2speech)(SpeechSynthesisUtterance) function say(m) { var msg = new SpeechSynthesisUtterance(); var voices = window.speechSynthesis.getVoices(); msg.voice = voices[10]; msg.voiceURI = "native"; msg.volume = 1; msg.rate = 1; msg.pitch = 0.8; msg.text = m; msg.lang = 'en-US'; speechSynthesis.speak(msg); } ์ถ์ฒ: https://stackoverflow.com/questions/15653145/using-google-text-to-speech-in-javascript Using Google Text-To-Speech in Javascr.. 2022. 11. 5. ์ด์ 1 2 3 4 5 6 ๋ค์ 728x90