Skip to content

Instantly share code, notes, and snippets.

View juandjara's full-sized avatar

Juan D. Jara juandjara

View GitHub Profile

Video.js Minimal Skin

Minimalist skin for Video.js. Can be modified to make custom skins.

The great thing about Video.js skins is they work in both HTML5 video AND Flash!

A Pen by Juan D. Jara on CodePen.

License.

@juandjara
juandjara / index.js
Created July 19, 2016 19:50
tusubtitulo.com scrapper module
var got = require("got");
var cheerio = require("cheerio");
var Fuzzy = require("fuzzy-search");
var base_url = "https://www.tusubtitulo.com";
var links = [];
module.exports = {
index: index,
@juandjara
juandjara / .hyper.js
Created December 21, 2016 23:12
Hyper terminal configuration
module.exports = {
config: {
windowSize: [720, 456],
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
@juandjara
juandjara / Metodos.java
Last active May 8, 2017 08:24
Archivo para la clase de Teledeteccion
/*
* 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 javatdt;
import java.awt.Color;
@juandjara
juandjara / ej1.m
Created May 19, 2017 17:38
practica repaso examen de MVG
clear
w = 500;
h = 500;
x = 0;
y = 0;
bg = 'white';
marco(x,y,w,h, bg);
ventana(0.1, 0.1, 0.8, 0.8, -6,6, -1,9, -2,2);
@juandjara
juandjara / api_datask_v4.yml
Created May 24, 2017 18:49
Swagger specs for datask
swagger: '2.0'
info:
title: Uber API
description: Move your app forward with the Uber API Rober
version: 1.0.0
host: api.uber.com
schemes:
- https
basePath: /v1
produces:
@juandjara
juandjara / EJ1.m
Created June 2, 2017 17:24
Examen practico MVG
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%APELLIDOS, NOMBRE: Domínguez Jara, Juan
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Ejercicio 1:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NOTA: Este codigo ha sido desarrollado con GNU Octvae
% para cualquier duda envie un email a juadomjar@alum.us.es
@juandjara
juandjara / deleteLastDeploy.js
Created August 12, 2017 12:25
Delete last deploy from `now.js` for a given project so yo can replace it with a new one.
// this script requires a `.env` file with a `NOW_TOKEN` to work
// it also requires the npm packages `dotenv` and `axios`
require('dotenv').config()
const pkg = require('./package.json')
const axios = require('axios').create({
baseURL: "https://api.zeit.co/now",
headers: {
Authorization: `Bearer ${process.env.NOW_TOKEN}`
}
@juandjara
juandjara / api.middleware.js
Last active August 18, 2017 12:18
Entity reducer with complex crud operations
import angular from 'angular'
export default angular.module('obs.apiMiddleware', [])
.factory('apiMiddleware', ($http, config) => {
'ngInject';
return ({dispatch}) => next => action => {
const {type = "", meta = {}, payload = {}} = action
if(!meta.async) {
return next(action)
@juandjara
juandjara / Context.js
Last active August 29, 2018 17:33
Utils for React 16 Context API.
// Proivder usage example:
// <ContextProvider> <MyApp></MyApp> </ContextProvider>
// TIP: The ContextProvider component must be placed above the router component if you use a router.
// Consumer usage example:
// export default withContext(MyComponent);
// now `context` gets passed to `MyComponent` as a prop.
// the context prop has two methods `get` and `set` that can read and update the state of the context provider component
import React, { createContext, Component } from 'react';