Skip to content

Instantly share code, notes, and snippets.

View juanjmerono's full-sized avatar

Juan José Meroño Sánchez juanjmerono

  • University of Murcia
View GitHub Profile
// ******************
// DAY 01
// ******************
export default function contarOvejas(ovejas) {
// aquí tu magia
return ovejas.filter(ov =>
ov.name.toLowerCase().indexOf('n')>=0
&&
ov.name.toLowerCase().indexOf('a')>=0
&&
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Maven Quick Start Archetype</name>
diff --git a/modules/matterhorn-lti/src/main/java/org/opencastproject/lti/LtiServlet.java b/modules/matterhorn-lti/src/main/java/org/opencastproject/lti/LtiServlet.java
index 65849b0..2d9c157 100644
--- a/modules/matterhorn-lti/src/main/java/org/opencastproject/lti/LtiServlet.java
+++ b/modules/matterhorn-lti/src/main/java/org/opencastproject/lti/LtiServlet.java
@@ -194,7 +194,9 @@
String customParams = getCustomParams(req);
if (customParams != null) {
- toolUrl = toolUrl + "?" + customParams;
+ toolUrl = toolUrl + "?" + customParams + "&context_id=" + StringUtils.trimToNull(req.getParameter(CONTEXT_ID));
/**
* Copyright (c) 2008-2010 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
#!/bin/bash
#
#
function log () {
if [[ $_VERBOSE -eq 1 ]]; then
echo "$@"
fi
}
git cherry 11.x master -v --abbrev=10 | grep '^+' | grep --invert-match -E 'SAK-|KNL-|SAM-|LSNBLDR-|LNSBLDR-|LSNBDLR-|DASH-|RSF-|Sak-|(\#|\s)[0-9]{4}(\:|\s|$)*'
#!/bin/bash
#
#
function log () {
if [[ $_VERBOSE -eq 1 ]]; then
echo "$@"
fi
}
if [ "$1" == "-v" ]
@juanjmerono
juanjmerono / chcherrypick.sh
Last active July 26, 2018 15:31
Script to list pending commits in 11.x branch
#!/bin/bash
#
# You must run this in the Sakai working directory in master branch
# chcherrypick.sh -u (to update your repo)
# chcherrypick.sh -f jiracode (to find a jira in 11.x branch)
# chcherrypick.sh -m (to check the list of pending cherry picks even they are not Verified in jira)
# chcherrypick.sh -v (to check the list of pending cherry picks verbose mode)
# chcherrypick.sh (to check the list of pending cherry picks)
#