Skip to content

Instantly share code, notes, and snippets.

View josedaniel's full-sized avatar
Building.

José Daniel Paternina josedaniel

Building.
View GitHub Profile
@josedaniel
josedaniel / Quote.js
Last active July 16, 2018 17:16
Regular Vulcano CRUD model
/* global mongoose, Quote, VSError */
/**
* Quote.js
*/
module.exports = {
attributes: {
active: {
@josedaniel
josedaniel / md5.js
Created May 2, 2011 14:21
Javascript MD5 Tool
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*
<div class="todo-list"></div>
<script>
async function data(){
const src = 'http://my-data.com/data.json';
const response = await fetch(src);
return response.json();
}
class TodoItem{
constructor({title, description, completed}) {
[type=range]{-webkit-appearance:none;background:transparent;margin:15px 0;width:100%}[type=range]::-moz-focus-outer{border:0}[type=range]:focus{outline:0}[type=range]:focus::-webkit-slider-runnable-track{background:-webkit-gradient(linear,right top,left top,from(#ef3d3a),to(#40b6fa));background:linear-gradient(270deg,#ef3d3a,#40b6fa)}[type=range]:focus::-ms-fill-lower,[type=range]:focus::-ms-fill-upper{background:linear-gradient(270deg,#ef3d3a,#40b6fa)}[type=range]::-webkit-slider-runnable-track{cursor:default;height:16px;-webkit-transition:all .2s ease;transition:all .2s ease;width:100%;-webkit-box-shadow:0 0 0 rgba(0,0,0,.2),0 0 0 rgba(13,13,13,.2);box-shadow:0 0 0 rgba(0,0,0,.2),0 0 0 rgba(13,13,13,.2);background:-webkit-gradient(linear,right top,left top,from(#ef3d3a),to(#40b6fa));background:linear-gradient(270deg,#ef3d3a,#40b6fa);border:0 solid #cfd8dc;border-radius:10px}[type=range]::-webkit-slider-thumb{-webkit-box-shadow:5px 5px 15px rgba(0,0,0,.2),0 0 5px rgba(13,13,13,.2);box-shadow:5px 5px 15px rgb
@josedaniel
josedaniel / webpack.config.js
Last active March 25, 2024 21:44
Webpack Configuration for Web Development
const path = require('path');
const webpack = require('webpack');
const ESLintPlugin = require('eslint-webpack-plugin');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const pk = require('./package.json');
const env = String(process.env.NODE_ENV || 'development').toLowerCase();
const version = String(pk.version) || '0.0.1';