- Open Terminal found in Finder > Applications > Utilities
- In Terminal, paste the following:
defaults write com.apple.finder AppleShowAllFiles YES
Press return
Please follow these steps to point your domain name from namecheap domain to the Netlify nameservers: | |
- Having logged into Namecheap account, go to your Domain List -> click 'Manage' next to the domain website.com -> locate the 'Nameservers' section; | |
- Choose ‘Custom DNS’ in the drop-down menu; | |
- Fill in your custom nameservers into empty lines; | |
4 lines in total : | |
dns1.p03.nsone.net | |
dns2.p03.nsone.net | |
dns3.p03.nsone.net |
// Primjer Asynchronog rada Javascripta | |
function printHello() { | |
console.log(`I na kraju, primamo selame i tople pozdrave iz | |
printHello funkcije !`); | |
} | |
function blockFor1Sec() { | |
// Blokiramo JS thread, radimo bilo sta... | |
const tajnaAsynchronogJs = |
Notepads are awesome, but sometimes you need to just jot down a quick one or two line note that doesn't need to be saved. Software developer Jose Jesus Perez Aguinaga shares a simple way to do it in any browser.
All you need to do is type the following code into the browser's URL bar:
data:text/html, <html contenteditable>
Hit Enter, and start typing away directly in your browser window!
{ | |
"repository": { | |
"type": "git", | |
"url": "https://github.com/ddeveloperr/react-timer.git" | |
}, | |
"name": "react-timer", | |
"version": "1.0.0", | |
"description": "React timer app", | |
"main": "index.js", | |
"scripts": { |
var webpackConfig = require('./webpack.config.js'); | |
module.exports = function (config) { | |
config.set({ | |
browsers: ['Chrome'], | |
singleRun: true, | |
frameworks: ['mocha'], | |
files: ['app/tests/**/*.test.jsx'], | |
preprocessors: { | |
'app/tests/**/*.test.jsx': ['webpack', 'sourcemap'] |
TOP NPM COMMANDS | |
Use NPM is very easy to use. You can use it to manage your project's dependencies and you create commands for tasks automation purposes, everything is created and managed into the package.json file. See bellow a list of the top npm commands: | |
npm init: displays a simple wizard to help you create and describe your new project; | |
npm install module_name: install a module; | |
npm install -g module_name: install a global module; | |
npm install module_name --save: install a module and add it into the package.json file, inside dependencies; | |
npm install module_name --save-dev: install a module and add it into the package.json file, inside devDependencies; | |
npm list: lists all the modules installed on the project; | |
npm list -g: lists all the global modules installed on the OS; | |
npm remove module_name: uninstall a module from the project; |
You can automate tasks using the npm command. In practice, you can only create new executable commands running npm run command_name. To declare those new commands, just create them inside the attribute scripts on package.json like this example bellow:
"name": "my-first-node-app",
"description": "My first node app",
"author": "User <user@email.com>",
"version": "1.2.3",
"private": true,
"scripts": {
"start": "node app.js",