Skip to content

Instantly share code, notes, and snippets.

View soter19's full-sized avatar
🪲
Hunting bugs

Soter soter19

🪲
Hunting bugs
View GitHub Profile
@soter19
soter19 / bitbutcketFilter.js
Last active January 15, 2018 21:34
Bitbucket PR file filter
// 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 => {
@soter19
soter19 / index.js
Last active August 31, 2018 18:27 — forked from codetony25/cloudSettings
Material UI Dialog Higher Order Component (HOC)
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 / CONCURRENCY.md
Created September 12, 2018 14:00 — forked from montanaflynn/CONCURRENCY.md
Examples of sequential, concurrent and parallel requests in node.js

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.html
Created February 20, 2019 13:15
Pure CSS Still Life - Water and Lemons
<pic>
<background>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
@soter19
soter19 / git-deployment.md
Created January 29, 2020 18:01 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

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.

@soter19
soter19 / nextButton
Created June 16, 2020 00:44
Go to next file [GH-PR]
if(!next-button-qwerty){
document.body.innerHTML += "<button id='next-button-qwerty'>Next!<button>"
let button = document.getElementById("next-button-qwerty");
button.onclick = () => document.querySelectorAll(".js-reviewed-checkbox:not(:checked)")[0].click();
button.style = `
position: fixed;
right: 10px;