Skip to content

Instantly share code, notes, and snippets.

View jjvillavicencio's full-sized avatar

John Villavicencio jjvillavicencio

View GitHub Profile
.service('srvGaleria',['$http',function($http){
this.servicioGaleria = function (parametro,tipo){
// parametro=parametro.replace(" ","%20");
console.log('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
return $http.get('http://carbono.utpl.edu.ec:8080/media/webresources/detalle/buscarporsujeto?sujeto='+parametro+'&type='+tipo);
};
}])
{%extends "index.html"%}
{%block header%}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style type="text/css">
${demo.css}
</style>
<script type="text/javascript">
$(function () {
$('#container').highcharts({
{% extends "index.html" %}
{% block header %}
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int main (int argc, char* argv[])
{
int rank, size, origen, destino, ndat, tag;
int n, i, j;
int suma = 0;
int cont = 0;
@jjvillavicencio
jjvillavicencio / requeriments.txt
Created January 27, 2017 01:31
Django Projects
backports.shutil-get-terminal-size==1.0.0
decorator==4.0.11
Django==1.8
django-cors-headers==2.0.0
djangorestframework==3.5.3
enum34==1.1.6
httpie==0.9.9
ipython==5.1.0
ipython-genutils==0.1.0
pathlib2==2.2.0
Router(config)#license boot module C2900 technology-package securityk9
Router#copy running-config startup-config
Router#reload
=== SWITCH 1 ==
vlan database
vlan 10
vlan 20
vlan 30
@jjvillavicencio
jjvillavicencio / open_learning.rdf
Created March 21, 2018 03:40
rdf datos open learning
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:j.0="http://purl.org/dc/terms/"
xmlns:myData="http://mivocabulario.utpl/data/"
xmlns:dbo="http://dbpedia.org/ontology/"
xmlns:schema="http://schema.org/"
xmlns:myVocab="http://mivocabulario.utpl/ontology#"
xmlns:vivo="http://vivoweb.org/ontology/core#"
xmlns:j.1="http://xmlns.com/foaf/0.1/">
<myVocab:Estudiante rdf:about="http://mivocabulario.utpl/data/estudiante/135471">
@jjvillavicencio
jjvillavicencio / Firebae_plugin.rm
Last active March 26, 2018 22:58
Firebase_plugin
there is a temporary fix to this, force the services and firebase versions to 11.8.0.
how to:
put this inside the tag of config.xml with the content:
<hook src="fixFirebasePlugin.js" type="before_build" />
create the JS file on your project root:
module.exports = function(context) {
@jjvillavicencio
jjvillavicencio / login-background.sh
Last active May 23, 2018 02:10
Genome Login Background
WORKDIR=~/tmp/gdm-login-background
GST=/usr/share/gnome-shell/gnome-shell-theme.gresource
GSTRES=$(basename $GST)
mkdir -p $WORKDIR
cd $WORKDIR
mkdir theme
for r in `gresource list $GST`; do
gresource extract $GST $r >$WORKDIR$(echo $r | sed -e 's/^\/org\/gnome\/shell\//\//g')
@jjvillavicencio
jjvillavicencio / formulario.component.ts
Created May 14, 2018 21:08
Crear formularios Angular 4
import { Component, OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { FileHolder } from 'angular2-image-upload';
@Component({
selector: 'app-add-conductor',
templateUrl: './add-conductor.component.html',
styleUrls: ['./add-conductor.component.css']
})
export class AddConductorComponent implements OnInit {