This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yo digo bienvenido | |
I say welcome over and over to every and all who show me themselves in a way I can | |
understand because their kindness in doing so is lovely. I want more of it, and them, | |
in my world. They are welcome. | |
Digo bienvenido, una y otra vez, a todo aquel que se me muestra de modo que puedo entenderle, porque su amabilidad al hacerlo es adorable. Quiero tener más de eso y más de ellos en mi mundo. Son bienvenidos. | |
I say welcome because for hundreds of years we have been unwelcome in hundreds of | |
ways. Our feelings especially have been taboo, our deepest selves prohibited. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.onresolve.jira.groovy.jql | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.bc.JiraServiceContextImpl | |
import com.atlassian.jira.bc.issue.search.SearchService | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.config.properties.APKeys | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.issue.fields.CustomField | |
import com.atlassian.jira.issue.search.filters.IssueIdFilter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def openSprints = boardData.get("openSprints") as List<Map> | |
openSprints.findAll { it.name.contains(sprintMarkerName).xor(negate) }.each { sprint -> | |
sprint.get("issues")*.id.each { | |
issueIds.add(it.toString()) | |
def issue = issueManager.getIssueObject(it) | |
def subTasks = issue?.subTaskObjects | |
if (subTasks) { | |
issueIds.addAll(subTasks.collect{it.id.toString()}) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='redis.clients', module='jedis', version='2.1.0') | |
import redis.clients.jedis.* | |
def poolconfig = new JedisPoolConfig() | |
def conn = (new JedisPool(poolconfig, "localhost", Protocol.DEFAULT_PORT, 0 /* Protocol.DEFAULT_TIMEOUT */, null, 0)).getResource() | |
def setupRestricciones(connx) { | |
[31276:1369774800001, /* Scores should be consistant with target zset's internal scores (categoria:78:eventos) */ | |
38000:1412456400000, | |
37909:1369776600000].each { k, v -> connx.zadd('tmp:restricciones', v, k.toString()) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Uso: | |
- Llamar: | |
groovy updatelogs.groovy [svn url] [PREFIJO] [revinicial] [revfinal] > updatelogs.sh | |
- Revisar el script updatelogs.sh generado | |
- Lanzar: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String generarSitemapCategorias(categoria) { | |
def categorias = [] as Set | |
def descendientes = this.redisInstance.zrange( "categoria:${categoria}:descendientes", 0, -1) | |
def categoriasYEventos = [:] | |
this.redisInstance.withPipeline { pipe -> | |
categoriasYEventos = descendientes.findResults { | |
[id: it, zcard: pipe.zcard("categoria:${it}:eventos")] | |
} | |
} | |
categorias = categoriasYEventos.findResults { if (it.zcard.get() > 0) it.id } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='redis.clients', module='jedis', version='2.1.0') | |
import redis.clients.jedis.* | |
import java.util.concurrent.ExecutorService | |
import java.util.concurrent.Executors | |
import java.util.concurrent.Callable | |
/** | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def user = componentManager.jiraAuthenticationContext.getLoggedInUser() | |
def campoCelula = componentManager.customFieldManager.customFieldObjects.find { it.fieldName.endsWith('lula IT') } | |
def celula = issue.getCustomFieldValue(campoCelula) | |
def jql = """ | |
project = 'TICKETBIS' | |
and '${campoCelula.name}' = '${celula}' | |
and status = 'En Pruebas' | |
and assignee is null | |
""" | |
def searchService = componentManager.getSearchService() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def updateSetContent(hashkey, userKey, hashvalue, user){ | |
def options = this.questions[hashkey].options | |
def valuesArray = hashvalue.split(',') | |
options.each{ option -> | |
def existia = jedis.sismember(userKey, option.value) | |
def existe = valuesArray.find{ it == option.value } | |
//si el usuario la marco como respuesta, y no existia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nire.verticles; | |
@groovy.transform.Field HANDLER_NAME = "nire.handlers.AsignarEjercicio" | |
def eb = vertx.eventBus() | |
println "Will listen at ${HANDLER_NAME}" | |
eb.consumer(HANDLER_NAME) { message -> | |
def worker = new DummyWorker() | |
worker.processElement(message.body().msg) |
OlderNewer