Skip to content

Instantly share code, notes, and snippets.

View jesusnoseq's full-sized avatar
🧐

Jesús Rodríguez Pérez jesusnoseq

🧐
View GitHub Profile
@jesusnoseq
jesusnoseq / menu.html
Last active February 7, 2022 00:32
Como hacer un menú de categorías en django.
<nav class="container mainMenu">
<ul>
<li class="active"><a href="/">Home</a></li>
{% for c in categorias %}
<li><a class="btn" href="{{c.get_absolute_url}}">{{c.nombre}}</a></li>
{% empty %}
<li>No existen categorias creadas.</li>
{% endfor %}
</ul>
</nav>
@jesusnoseq
jesusnoseq / GoogleDriveBasic.java
Created December 23, 2012 10:33
A basic class for download and upload text files with google drive API.
//package com.jrp.googleapi;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow;
import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;
import com.google.api.client.googleapis.auth.oauth2.GoogleTokenResponse;
@jesusnoseq
jesusnoseq / Template-Developer-Survey.md
Created May 19, 2020 08:29 — forked from durbon/Template-Developer-Survey.md
Este listado de temas cubre un amplio abanico de asuntos que nos interesa evaluar dentro del equipo https://medium.com/@durbon/developer-survey-recopilando-la-opini%C3%B3n-de-los-desarrolladores-76384a0347bb

1. Development environment

  • How would you rate the development environment in team? (Use the [1-5] scale)
  • How would you rate the project Settings needed to start to work? (Use the [1-5] scale)
  • How would you rate documentation of the necessary tools? (Use the [1-5] scale)
  • How do you rate the team’s current onboarding process? (Use the [1-5] scale)
  • Do you think we have enough tools to work with? (Use the [1-5] scale)
  • What tools are you missing in order to be more productive at work?

2. Code

  • What is the level of satisfaction with the current codebase? (Use the [1-5] scale)
@jesusnoseq
jesusnoseq / linedrawing.html
Last active December 21, 2019 18:30
Simple line drawing beetwen markers with leaflet
<!DOCTYPE html>
<html>
<head>
<title>Leaflet nodes</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""
@jesusnoseq
jesusnoseq / TMPButton
Created January 13, 2018 17:25
Creates a context menu item to create a button with a text mesh pro text instead unity's text
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class TMPButton {
[MenuItem("GameObject/UI/TextMeshPro - Button", false, 0)]
@jesusnoseq
jesusnoseq / FeasibilityLite.cs
Created December 8, 2017 02:17 — forked from guywald/FeasibilityLite.cs
Unity 3d Facebook + AWS Cognito + AWS Api Gateway + AWS Lambda Authenticated Web Request
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using Facebook.Unity;
using System.Collections.Generic;
using UnityEngine.Experimental.Networking;
using Amazon;
using Amazon.Runtime;
using Amazon.CognitoIdentity;
using Amazon.CognitoIdentity.Model;
--
-- Base de datossqltest
--
CREATE DATABASE `sqltest` ;
use `sqltest`;
<?php
// Configuracion de la conexion a la base de datos
// Normalmente se pone en otro fichero para hacer
// include o require posteriormente
define('NAME',"sqltest");
define('SERVER',"127.0.0.1");
define('USER',"root");
define('PWD',"");
?>
@jesusnoseq
jesusnoseq / svgTestGame.svg
Created May 19, 2013 21:59
Una prueba de videojuego usando el formato de imagenes vectoriales SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jesusnoseq
jesusnoseq / SwitchOffByTweet.java
Last active December 14, 2015 10:59
A little tool to read a direct messages from twitter and switch off the computer
import java.io.IOException;
import twitter4j.DirectMessage;
import twitter4j.TwitterException;
import twitter4j.TwitterStream;
import twitter4j.TwitterStreamFactory;
import twitter4j.UserStreamAdapter;
import twitter4j.conf.ConfigurationBuilder;