Skip to content

Instantly share code, notes, and snippets.

View grvcoelho's full-sized avatar
:shipit:
Shipping a great company

Guilherme Coelho grvcoelho

:shipit:
Shipping a great company
View GitHub Profile
@grvcoelho
grvcoelho / clean-docker-disk-space.md
Created December 9, 2016 10:46
Some scripts to cleanup docker disk space

Stop all containers

$ docker stop (docker ps -aq)
$ docker rm (docker ps -aq)

Remove unused images and containers

const curryN = (len, fn, received = []) => (...args) => {
let combined = [...received, ...args]
if (args.length === len) {
return fn(...combined)
}
return curryN(len - args.length, fn, combined)
}
Verifying that +grvcoelho is my blockchain ID. https://onename.com/grvcoelho
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package textandfiles;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@grvcoelho
grvcoelho / RoubaMonte.java
Last active September 26, 2015 02:18
Implementação de Rouba Monte em Java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package main;
import API.*;
import java.util.ArrayList;
import java.util.Scanner;
@grvcoelho
grvcoelho / gulpfile.js
Last active August 29, 2015 14:11
Example of the use of gulp-plumber
/**
* Require gulp
*/
var gulp = require('gulp');
/**
* Require gulp dependencies
*/
var concat = require('gulp-concat');
@grvcoelho
grvcoelho / QuickSort.java
Created November 8, 2014 01:15
Java quicksort algorythm implementation
public class QuickSort {
private static long ifs = 0;;
/**
* @param args
*/
public static long Sort(double[] a, boolean desc) {
ifs = 0;
quicksort(a, 0, a.length-1, desc);