Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
馃槑
Focus on FOSS Projects!

Ulises Gasc贸n UlisesGascon

馃槑
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / hack.js
Last active April 9, 2018 13:01
Just another little hack for friends ^^
$( document ).ready(function() {
$("#ui-id-3").on("click", function(){
console.log("Fase 1")
setTimeout(function() {
console.log("Fase 2")
// DOM Selectors
var inputSelector = document.getElementById("searchbox");
var canvasSelector = document.getElementById("graph_canvas_0");
// Function to blur the focus
@UlisesGascon
UlisesGascon / in_broser_console.js
Created April 1, 2018 12:59
Generar un fichero MD con los mas descargados y populares generadores de http://yeoman.io/generators/
// Ejecutar en la consola cuando estemos en http://yeoman.io/generators/
var md = ""
function generateMd(dataItem){
md += `**:top: ${dataItem}**\n`
var datos = document.querySelectorAll(".list > tr")
datos.forEach(function(dato){
var linkSelector = dato.querySelector("a")
var nameSelector = dato.querySelector(".name")
@UlisesGascon
UlisesGascon / gruntfile.js
Created March 31, 2018 10:53
Grunt vs Gulp using weapp generator
// Generated on 2018-03-31 using
// generator-webapp 1.1.2
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
@UlisesGascon
UlisesGascon / pillars_passport_dual.js
Last active December 27, 2017 12:08
Pillars, Passport with Local and Facebook. Thanks to @bifuer & @lilxelo
// Passport requires
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var FacebookStrategy = require('passport-facebook').Strategy;
// Passport Local strategy
passport.use(new LocalStrategy(
function(username, password, done) {
if(username == "user" && password=="pass"){
@UlisesGascon
UlisesGascon / pillarsjs_and_goblindb_installation.md
Created November 24, 2017 19:51
pillarsjs_and_goblindb_installation.md

Requeriments

  1. Install Node.js. Guide

In order to avoid issues with the network during the workshop

We will install the packages as a global dependencies in order to avoid the installation each time...

  1. Install Pillarsjs npm install pillars
@UlisesGascon
UlisesGascon / index.html
Created August 3, 2017 11:59
Angularjs Material Base
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Angular Material style sheet -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/1.1.4/angular-material.min.css">
</head>
<body ng-app="BlankApp" ng-cloak>
<!--
Your HTML content here
-->
@UlisesGascon
UlisesGascon / base_MDC.html
Created July 5, 2017 07:37
Basic MDC Template
<!DOCTYPE html>
<html class="mdc-typography">
<head>
<title>hello World!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
@UlisesGascon
UlisesGascon / gist:fc20cd04ec46a4f566ec70496fadf23d
Created June 27, 2017 13:43 — forked from wikimatze/gist:9790374
Github Two-Factor Authentication Failed For HTTPS

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@UlisesGascon
UlisesGascon / cursos.json
Created May 16, 2017 15:18
Fictizia to json
[{
"title": "M谩ster en Visualizaci贸n interactiva de arquitectura con Unreal Engine 4 Visualizaci贸n 3D en tiempo real, realidad virtual, interacci贸n con espacios 3D, infoarquitectura",
"subtitle": "Visualizaci贸n 3D en tiempo real, realidad virtual, interacci贸n con espacios 3D, infoarquitectura",
"tags": ["Visualizaci贸n 3D en tiempo real, realidad virtual, interacci贸n con espacios 3D, infoarquitectura"],
"area": "Producci贸n 3D & Efectos visuales",
"targets": "En el mundo de la visualizaci&#xF3;n de arquitectura que siempre tratamos de lograr un resultado cercano a la realidad para ofrecer a nuestros clientes la sensaci&#xF3;n de ver el proyecto terminado. Pero en general estamos limitados a las im&#xE1;genes y los v&#xED;deos de estos ambientes todav&#xED;a. &#xBF;Y si pudi&#xE9;ramos entrar en las habitaciones, abrir las puertas, caminar sobre ella, encender y apagar las luces, cambiar la decoraci&#xF3;n y seguir manteniendo fotorealismo?",
"targets_full": "\n <p>En el mundo de la visualizaci&#xF3
@UlisesGascon
UlisesGascon / header.js
Created May 7, 2017 11:37
inyectar un script
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.onload = function() {
callFunctionFromScript();
}
script.src = 'path/to/your-script.js';
head.appendChild(script);