전체 글345 [TypeScript] Variable Declaration (var, let, const) var Declarations Declaring a variable in JavaScript has always traditionally been done with the var keyword. (ES5) var num = 7; Scoping Rules It is not an error to declare the same variable multiple times with var. var num = 7; var num = 3; let Declarations let differs from var in point of semantics. let say = "Hello"; Block Scoping Unlike variables declared with var whose scopes leak out to the.. 2020. 10. 15. [Python] pathlib module (Object-Oriented Filesystem Paths) Python version 3.4 and above basically includes this module. This module offers classes representing filesystem paths with semantics appropriate for different operating systems. This module treats the file system path as an object, not just a string. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure.. 2020. 10. 13. [TypeScript] Dev. Environment Configuration with VS Code TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It offers classes, modules, and interfaces to help you build robust components. Installation NPM Module If you want to use TypeScript compiler wherever, install it globally. $ yarn globally add typescript or $ npm i -g typescript If you want to use TypeScript only in a specific project, you can install it locally. $ .. 2020. 10. 12. [Python] Getting Started with Flask In this posting, I'll show you to create a simple web server with Flask. I usually use Flask when I develop a side project. You can make it that easily and quickly. Then, Let's start it. Installation $ pip install flask All you need is Flask. A Minimal Application Create app.py file. from flask import Flask app = Flask("Hello Flask") @app.route('/') def home(): return 'Hello, World!' Give the na.. 2020. 10. 11. [Python] Beautiful Soup4 module ※ 2020.10.09 Beautiful Soup is a library that makes it easy to scrape information from web pages. In addition, Beautiful Soup is a Python library for pulling data out of HTML and XML data. I will focus on the things that are frequently used. Installation $ pip install beautifulsoup4 Usage from bs4 import BeautifulSoup soup = BeautifulSoup(data, 'html.parser') Import the BeautifulSoup module, and.. 2020. 10. 9. [Python] requests module requests is a simple HTTP library for Python. Let's find out about it. Installation $ pip install requests Test Server I will use some test servers for example. httpbin.org httpbin.org is a simple HTTP request and response service. jsonplaceholder.typicode.com jsonplaceholder.typicode.comis a fake online REST API server. Usage You can simply use this. import requests rsp = requests.post("http://.. 2020. 10. 8. [Web] About Robots.txt robots.txt is an international recommendation that allows or restricts search robots to collect sites and web pages. The robots.txt file must always be located in the root directory of the site and must be written as a plain text file that complies with the robot exclusion standard. Search robots, etc. for illegal purposes may not comply with the robots.txt rule. Therefore, the information that .. 2020. 10. 7. [Firebase] Using Cloud Firestore as Database In this posting, we will use the Cloud Firestore of Firebase. Cloud Firestore is a NoSQL database. For focusing on Firebase usage, I'm not focusing on the React application. Sample React Application I made a React application for this practice. Please make your own application. Briefly explanation, If I click the Input button, the input message will be sent to the Firebase DB. And the message wi.. 2020. 10. 4. [Firebase] Firebase Authentication with React Firebase gives us tremendous convenience. In this posting, let's learn about authentication using Firebase. React Application For this practice, I used CRA (Create-React-App) that is the most used. I made the sign-in form. The explanation of the React application omits since I assumed that you can make a React application. I used styled-icons for the first time and it's not bad. The code was lon.. 2020. 10. 4. 이전 1 ··· 30 31 32 33 34 35 36 ··· 39 다음