Skip to content

Instantly share code, notes, and snippets.

Paolo D'Incau pdincau

  • XPeppers
  • Trento
Block or report user

Report or block pdincau

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
View CI Alternatives.md

Continuous Integration - Know your opportunities

Continuous Integration in a nutshell

Continuous Integration (CI) is an important practice every team should adopt in order to detect defects and errors early and solve integration problems easily. Roughly speaking we may say that CI is a practice that allows the growth of solid software by giving greater confidence to the developers and better products to the final customers.

The concept behind CI is fairly simple: the codebase is owned by several developers that continuously integrate their changes to a common version control system. For each integration the system runs a predefined set of tasks automatically; these tasks may vary from running all the tests to building all the components.

View Jenkins top ten lowest tests.md
grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
@pdincau
pdincau / gist:ea60d1fc7d900a61ae0c
Created Feb 17, 2015
separatore string calculator
View gist:ea60d1fc7d900a61ae0c
Estrarre separatore string calculator
Pattern pattern = Pattern.compile("//(.+?)\n(.+)");
Matcher matcher = pattern.matcher(input);
if (matcher.matches()) {
System.out.println(matcher.group(1));
}
View gist:ce754a4290d048799947
cowboy static files:
src
priv
in priv
static/js
index.html
index referenzia js come <script src="/static/js/controllers.js"></script>
View gist:0825ad51adbcd52ee83c
jQuery(document).ready(function() {
var attributes = {}
attributes["IT"] = 'data-amazon-it';
attributes["GB"] = 'data-amazon-gb';
var url = "http://freegeoip.net/json/ ";
jQuery.getJSON(url, function(data) {
var code = data.country_code;
var links = jQuery('[data-amazon]');
jQuery.each(links, function(index, link) {
View gist:16fddfd87e829fdeced2
sudo -u postgres createdb --locale it_IT.utf8 --encoding UTF8 --template template0 mopapp
postgres -D /opt/boxen/homebrew/var/postgres
View README.md
@pdincau
pdincau / gist:08f7b2fac39088c87b75
Last active Dec 26, 2016
Things I learned about ExUnit
View gist:08f7b2fac39088c87b75
Run tests:
mix test
Run single test file:
mix test path/to/file
Run single test:
@pdincau
pdincau / readme.md
Last active Jun 2, 2019
Study Path on microservices
View readme.md
You can’t perform that action at this time.