Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ask for file extension(s) | |
var fileTypes = prompt('Insira os tipos de arquivo que você quer que sejam escondidos, separados por vírgula').trim().split(',') | |
// Hide all Files | |
var allFiles = $('section').filter((index,el)=>el.id.indexOf('chg') > -1).each((i,el)=>el.style.display = 'none') | |
var count = 0 | |
// Only show files that don't have the chosen extensions | |
allFiles.map((index,el)=>{ | |
fileTypes.map(fileExtension => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render } from "react-dom"; | |
import Button from "material-ui/Button"; | |
import Dialog from "material-ui/Dialog"; | |
/** | |
* Accepts a function that maps owner props to a new collection of props that | |
* are passed to the base component. | |
* | |
* mapProps() pairs well with functional utility libraries like lodash/fp. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pic> | |
<background> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> | |
<i></i> |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.