Skip to content

Instantly share code, notes, and snippets.

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.itesm.Controllers;
import edu.itesm.Dao.ReactivoDAO;
import edu.itesm.Ejbs.OpcionFacadeLocal;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.itesm.Controllers;
import com.itesm.Dao.Dao;
import com.itesm.Ejbs.DenuncianteFacadeLocal;
import com.itesm.Ejbs.DireccionFacadeLocal;
public <T> List<T> list(Class c){
final String type = this.getClassName(c);
UUID idOne = UUID.randomUUID();
List<T> l = new ArrayList<T>();
View view = this.dc.getDatabase().getView(type);
@Jatapiaro
Jatapiaro / Couchdroid-Test
Created May 8, 2017 05:12
Couchdroid-Tests
package couchdroid.com.pruebacouchdroid;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import android.util.Log;
import com.couchdroid.crud.CRUDOperations;
import com.couchdroid.databasebuilder.DatabaseConfiguration;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProceduralAirfoil : MonoBehaviour {
FileReader fr;
Mesh mesh;
// Use this for initialization
void Start () {
@Jatapiaro
Jatapiaro / LocalTimeDemo.java
Created September 5, 2017 23:49
Local time demo for java certification
import java.time.*;
import java.time.temporal.Temporal;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
public class LocalTimeDemo{
public static void main(String[] args) {
System.out.println("Now: "+LocalTime.now()+"\n--------");
@Jatapiaro
Jatapiaro / tinder_api.py
Last active October 23, 2017 23:45
Lis of TinderAPI for get Ig of Spotify information. Using python 2
# encoding: utf8 1,1 Top# encoding: utf8
import argparse
from datetime import datetime
import json
from random import randint
import requests
import sys
from time import sleep
"""
@Jatapiaro
Jatapiaro / Ejercicio.java
Created October 9, 2017 23:16
ejercicio
public class Circle{
private double radius;
private String color;
public Circle(double radius, String color){
this.radius = radius;
this.color = color;
}
@Jatapiaro
Jatapiaro / fonda.html
Created October 12, 2017 01:16
algun día serás util
<ion-content padding>
<ion-card *ngFor="let fonda of fondas">
<ion-item>
<ion-fab middle right>
<button ion-fab mini class="fab-map">
<ion-icon name='pin'></ion-icon>
</button>
fondas : any[] = [
{
name: "Yoshi's Island",
latitude: 10.98,
longitude: 44.98,
distance: 'A 2km de ti',
image: 'https://firebasestorage.googleapis.com/v0/b/fonditas-26794.appspot.com/o/images%2F1507702157.jpg?alt=media&token=38d98600-7f05-4c75-90cb-bdb73e5934c6',
description: 'Lorem ipsum de no se que locura',