Skip to content

Instantly share code, notes, and snippets.

@durbon
durbon / Template-Developer-Survey.md
Last active June 9, 2023 11:58
Este listado de temas cubre un amplio abanico de asuntos que nos interesa evaluar dentro del equipo https://medium.com/@durbon/developer-survey-recopilando-la-opini%C3%B3n-de-los-desarrolladores-76384a0347bb

1. Development environment

  • How would you rate the development environment in team? (Use the [1-5] scale)
  • How would you rate the project Settings needed to start to work? (Use the [1-5] scale)
  • How would you rate documentation of the necessary tools? (Use the [1-5] scale)
  • How do you rate the team’s current onboarding process? (Use the [1-5] scale)
  • Do you think we have enough tools to work with? (Use the [1-5] scale)
  • What tools are you missing in order to be more productive at work?

2. Code

  • What is the level of satisfaction with the current codebase? (Use the [1-5] scale)
@durbon
durbon / 0_reuse_code.js
Created March 9, 2016 10:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Test
public void testGetSingleUser() {
expect().
statusCode(200).
body(
"email", equalTo("test@hascode.com"),
"firstName", equalTo("Tim"),
"lastName", equalTo("Testerman"),
"id", equalTo("1")).
when().
@durbon
durbon / json-lotto
Last active December 15, 2015 02:49
{
"email":"test@hascode.com",
"firstName":"Tim",
"id":"1",
"lastName":"Testerman"
}
@durbon
durbon / pom.xml
Created March 18, 2013 19:30
Rest-assured pom.xml
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>1.4</version>
miServicio.primeraLlamada(parametro1)
.then(
function (resultado1) {
// Gestionamos el exito de la primera llamada haciendo
// una segunda llamada asincrona
return miServicio.segundaLlamada(parametro2);
})
.then(
function (resultado2) {
// funcion invocada si hay exito en la segunda llamada
miServicio.get("http://www.bing.com")
.then(
function (resultado) {
// funcion invocada si el resultado es satisfactorio
},
function (error) {
// funcion invocada si hay un error
},
function (progress) {
// funcion invocada cuando existe un progreso
WinJS.Namespace.define("Data", {
items: groupedItems,
groups: groupedItems.groups,
getItemsFromGroup: getItemsFromGroup,
getItemReference: getItemReference,
resolveGroupReference: resolveGroupReference,
resolveItemReference: resolveItemReference
});
var refreshButton = document.getElementById("cmdRefresh").winControl;
refreshButton.addEventListener("click", manejador, false);
function manejador() {
// codigo para manejar evento
}
(function () {
"use strict";
// Codigo Javascript...
})();