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 / 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';
[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
<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}) {
@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 / vulcan-estudios-training.md
Last active November 16, 2016 15:48 — forked from romelperez/vulcan-estudios-training.md
vulcan-estudios-training.md

Capacitación

Metodologías

  • Cómo elegir la metodología correcta para cada equipo de desarrollo? Cuál es tu experiencia con metologías ágiles?
  • Cuál es tu herramienta favorita para llevar el tracking del proceso de desarrollo y la comunicación con los clientes?

DevOps

  • Cuál es la manera correcta de hacer Continuous Integration en 2016?
  • Aparte de Heroku, cuales son las mejores prácticas y herramientas para hacer deploy de las aplicaciones en 2016?
@josedaniel
josedaniel / gitignore
Created October 9, 2014 19:33
Default .gitignore file
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
@josedaniel
josedaniel / README.md
Created February 10, 2014 23:06 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@josedaniel
josedaniel / input.css
Created June 26, 2012 20:31
CSS custom inputs
/* CUSTOM FORM CONTROLS */
input[type="text"],input[type="password"]{
font-size:13px;
padding: 3px 7px;
border:none;
box-shadow: inset 0 1px 2px #999;
outline: none;
color:#444;
margin-right:10px;
border-bottom: 1px solid #eee;
@josedaniel
josedaniel / ssh.sh
Created May 22, 2012 22:24
Meterse al ssh del servidor remoto
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys'
@josedaniel
josedaniel / consultas.sql
Created March 15, 2012 16:55
Consultas SOQL
//Colegios
Select a.creado_en_zambo__c, a.Id, a.Name, a.RecordType.Name from Account a where a.creado_en_zambo__c = false and a.RecordType.Name = 'Institución educativa'
//Destinos
Select d.creado_en_zambo__c, d.Fecha_1__c, d.Fecha_2__c, d.Fecha_3__c, d.Id, d.Nro_de_dias__c, d.Nro_minimo_de_dias__c, d.Programa_Destino__c from Destino_Alternativo__c d where creado_en_zambo__c = false
//Viajes
Select c.Colegio__c, c.Destino_definitivo__c, c.Fecha_llegada__c, c.Fecha_salida__c, c.Name, c.Nro_de_Grupos__c, c.RecordTypeId, c.RecordType.Name, c.Status from Campaign c where RecordType.Name = 'Viaje' and c.Status = 'Ganado'