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
from webapp.models import Interest | |
'''This file loads two txt files and combines them to create a full list of hobbies. | |
Starts by reading the list of hobbies in spanish, each time it reads a line, process the string | |
for making the list as pure as possible. Finally the merged list is passed to the django database. | |
For full project details https://github.com/MagallanesFito/weheart. | |
''' | |
#Se cargan los hobbies en espanol | |
def procesar(cadena): | |
procesada = str(cadena).title() | |
resumida = procesada.split("(")[0] |
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
/* | |
Dependencias: | |
path_provider: ^0.4.1 | |
image_picker: ^0.4.0 | |
*/ | |
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'dart:io'; | |
import 'dart:async'; |
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
<!-- | |
Falta agregarle los iconos a cada uno de los componentes no sabía que en Bootstrap 4 no se podia agregar Glypicon :( | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dashboard</title> | |
<!-- Bootstrap core CSS --> |
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
#include <bits/stdc++.h> | |
#define INF 0x3f3f3f3f | |
using namespace std; | |
typedef pair<int,int> myPair; | |
class Graph{ | |
int V; | |
list<myPair> *adj; | |
public: | |
Graph(int V); |
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
#include <iostream> | |
#define INF 0x3f3f3f3f | |
#define MAX_VERTICES 4 | |
using namespace std; | |
int graph[MAX_VERTICES][MAX_VERTICES] = { | |
{0,5,INF,10}, | |
{INF,0,3,INF}, | |
{INF,INF,0,1}, | |
{INF,INF,INF,0} |
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
#include <iostream> | |
#include <list> | |
using namespace std; | |
class Graph{ | |
int V; //Numero de vertices | |
list<int> *adj; //arreglo de listas de adyacencia | |
bool *visited; //matriz de visitados. | |
public: | |
Graph(int V); //Constructor |
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
#include <iostream> | |
#include <list> | |
#include <algorithm> | |
using namespace std; | |
/** | |
Implementacion con lista de adyacencia | |
*/ | |
class Graph{ | |
int V; |
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
#include <iostream> | |
#include<list> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; | |
#define MAX_COLORS 1001 | |
vector<int> Color(MAX_COLORS,-1); | |
class Graph{ |
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
#include <bits/stdc++.h> | |
#define INF 0x3f3f3f3f | |
using namespace std; | |
class Graph{ | |
private: | |
int V; | |
//lista de aristas, con formato <peso,origen,destino> | |
vector<pair<int,pair<int,int> > > edges; | |
bool hasNegativeCycle = false; |
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
#include <bits/stdc++.h> | |
#define INF 0x3f3f3f3f | |
using namespace std; | |
typedef pair<int,int> iPair; | |
class Graph{ | |
int V; | |
//lista de adyacencia con pesos | |
//list<int> *adj; sin pesos |