Skip to content

Instantly share code, notes, and snippets.

Soter Padua soter19

Block or report user

Report or block soter19

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@soter19
soter19 / index.html
Created Feb 20, 2019
Pure CSS Still Life - Water and Lemons
View index.html
<pic>
<background>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
@soter19
soter19 / CONCURRENCY.md
Created Sep 12, 2018 — forked from montanaflynn/CONCURRENCY.md
Examples of sequential, concurrent and parallel requests in node.js
View CONCURRENCY.md

Concurrency in JavaScript

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.

@soter19
soter19 / index.js
Last active Aug 31, 2018 — forked from codetony25/Material UI Dialog Higher Order Component (HOC)
Material UI Dialog Higher Order Component (HOC)
View index.js
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.
@soter19
soter19 / bitbutcketFilter.js
Last active Jan 15, 2018
Bitbucket PR file filter
View bitbutcketFilter.js
// 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 => {
You can’t perform that action at this time.