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
changeChannel : function(handlerType, handler ,color){ | |
//alert(handler) | |
var visEl = this.component.querySelector("ceci-"+this.channelType+"["+handlerType+"=\""+handler+"\"]"); | |
if (color == "false"){ | |
if (visEl){ | |
visEl.parentNode.removeChild(visEl); | |
} | |
} else { | |
// If it exists | |
if (visEl){ |
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
<datasources> | |
<datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-java-context="true"> | |
<connection-url>jdbc:mysql://localhost:3306/unifiedpush</connection-url> | |
<driver>com.mysql.jdbc.Driver</driver> | |
<security> | |
<user-name>root</user-name> | |
<password>mysql</password> | |
</security> | |
</datasource> | |
<drivers> |
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
$(document).on("click", | |
"#deleteSelection${cadenaAleatoria}", | |
function(){ | |
$('.alertaGrillaResultado').css('display','inherit'); | |
var selectedModels = grid.getSelectedModels(); | |
if(selectedModels != ''){ | |
var respuesta = confirm('ยฟDesea retirar Horas de Equivalencia?'); | |
if(respuesta){ |
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
<?php | |
/* | |
Plugin Name: Foxy Board | |
Plugin URI: http://wordpress.org/plugins/foxy-board/ | |
Version: 0.5.2 | |
Author: Willy Aguirre | |
Description: Easily Embed and Preview (Mozilla) Firefox Marketplace Apps in a stylish and modern way. | |
*/ | |
class Foxyboard{ | |
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
List<EventualidadDto> sumaTotalDeHoras = ((Session)JPA.em().getDelegate()).createCriteria(Eventualidad.class) | |
.setProjection( Projections.projectionList() | |
.add(Projections.sqlGroupProjection("sum({alias}.totalDeHoras) as sumaDeHoras", "{alias}.docente_codigo,{alias}.tipoEventualidad_id", | |
new String[]{"sumaDeHoras"}, new Type[] {DoubleType.INSTANCE}),"sumaDeHoras")) | |
.add( Restrictions.sqlRestriction(" ( {alias}.docente_codigo = ? ) ", new String[] {r.codigo}, new Type[] {StringType.INSTANCE})) | |
.add( Restrictions.sqlRestriction(" ( {alias}.tipoEventualidad_id = ? ) ", new Long[] {tipoEventualidad.id}, new Type[] {LongType.INSTANCE})) | |
.setResultTransformer(new AliasToBeanResultTransformer(EventualidadDto.class)).list(); |
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
List<LocalDate> soloSabados = new ArrayList<LocalDate>(); | |
int diferenciaDias = Days.daysBetween(new LocalDate(desde), new LocalDate(hasta)).getDays(); | |
for(int i = 0; i <= diferenciaDias; i++) { | |
if(new LocalDate(desde).plusDays(i).getDayOfWeek() == 6){ | |
soloSabados.add(new LocalDate(desde).plusDays(i)); | |
} | |
} | |
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
var horas = ['07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21']; | |
var minutos = [':00',':05',':10',':15',':20',':25',':30',':35',':40',':45',':50',':55'] | |
var merged | |
var resultados = []; | |
for(h = 0; h < horas.length; h++){ | |
for(i = 0; i < minutos.length; i++){ | |
merged = horas[h].concat(minutos[i]); | |
resultados.push([merged,merged]); |
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
function mostrarMapa(){ | |
var geoJson = []; | |
var map = L.mapbox.map('mapbox', 'osgux.g99506jm'); | |
$.getJSON('js/estaciones.json', function(response){ | |
$.each(response, function(index, item){ | |
geoJson.push({ | |
"type": "Feature", | |
"geometry": { |
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
// Horarios | |
Horario = Backbone.Model.extend({}); | |
HorarioCollection = Backbone.Collection.extend({ | |
model: Horario, | |
url: 'js/horarios_domingo_y_feriados.json', | |
initialize: function(estacionNumero) { | |
this.estacion = estacionNumero; | |
}, | |
parse: function(response) { |
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
g8 scalatra/scalatra-sbt.g8 --organization=com.api --package=com.api.app --name="Sube al Metro Api" --scalatra_version=2.2.2 --servlet_name=App --scala_version=2.10.2 --version=0.1.0-SNAPSHOT |