JSFiddle

  • Placeholder Avatars

    jQuery (edge), HTML, CSS, JavaScript

    String.prototype.hashCode = function() {
    			var hash = 0,
    						i, chr, len;
    			if (this.length == 0) return hash;
    			for (i = 0, len ...
  • crypt.io implements secures browser storage

    No-Library (pure JS), HTML, CSS, JavaScript

    !function(a,b){"use strict";var c=c||function(){var d={encrypt:!0,passphrase:"",storage:"local"},e=e||{init:function ...
  • VueJS ejercicio

    Vue (edge), HTML, CSS, JavaScript

    'use strict'
    
    const vm = new Vue({
        el: 'main', // https://vuejs.org/v2/api/#el
        //template: '', // https://vuejs.org/v2/api ...
  • VueJS Map - Filter - Sin map

    Programación funcional para la asociación de arrays de objetos. En este ejercicio no se utiliza map, dado que ya iteramos con v-for

    new Vue({
    	el: 'main',
    	data: {
        movies: [
            {id: 13, title: 'Iron Man'},
            {id: 12, title: 'Conan el Bárbaro'},
            {id: 33, title ...
  • VueJS Map - Filter

    Programación funcional para la asociación de arrays de objetos.

    const ratings = [
    	{movieId: 1, value: 4},
    	{movieId: 2, value: 1},
    	{movieId: 3, value: 2},
    	{movieId: 4, value: 5},
    	{movieId: 5 ...
  • VueJS LUIS

    Pruebas básicas de LUIS

    'use strict';
    
    // https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/5f06a582-19f2-4938-934d-6e3c1b7d21d7?subscription-key=d03c13861a9d43adaf88f79c824973a3&verbose=true&timezoneOffset=60&q=
    
    Vue.$http = axios;
    
    const vm = new Vue({
    		el ...
  • Vue JS - Workshop

    No-Library (pure JS), HTML, CSS, JavaScript

    /*
    * @Author: internoma
    * @Date:   2017-05-27 01:24:01
    * @Last Modified by:   internoma
    * @Last Modified time: 2017-05-30 23:22:40
    */
    
    'use strict ...
  • Vue JS - Active List Mixin

    Item active from list - getActive - setActive with localStorage persistence

    'use strict';
    
    const activeList = {
      data: {
        activeList: {
          storageKey: 'activeList',
          itemActive: 1
        }
      },
      methods: {
        getActive: function(item) {
          return (item === this.activeList.itemActive) ? 1 ...
  • Javascript Extend

    No-Library (pure JS), HTML, CSS, JavaScript

    /*
     * El método Extend
     */
    Object.prototype.extend = Object.prototype.extend || function (destination, source) {
      for (var property in source) { destination[property] = source ...
  • Vue localStore

    Vue localStore

    Vue.store = {
        localStoreSupport: function() {
            try {
                return "localStorage" in window && window["localStorage"] !== null;
            } catch (e) {
                return false;
            }
        },
        setObj: function(key, obj, days) {
            var expires ...