git init <-- Create repo
git add . <-- Add change to
git commit -m "Message" <-- Commit to repo
git commit -m "Message" <files> <-- Commit to repo
git commit -am "Message" <-- Add files & Commit to repo
git commit -a --amend <-- Add change to Commit, option to change de description of Commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON('/my/url', function(data) { | |
}); | |
vs | |
request = new XMLHttpRequest(); | |
request.open('GET', '/my/url', true); | |
request.onload = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Guardando email de Contact Form 7 en MailChimp | |
Necesita el archivo MCAPI.class.php de la API de MailChimp | |
En este en concreto usamos un checbox con el nombre subscribe para comprobar si el | |
usuario quiere subscribirse o no. En caso afirmativo guardamos el nombre y el email | |
en la lista concreta de nuestro MailChimp. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const range = require('lodash.range'); | |
const flatten = require('flatten'); | |
const Promise = require('bluebird'); | |
const fs = require('fs'); | |
const RANGE = 60; | |
const RESOLUTIONS = ['1440x900','1600x900']; | |
const STATUS_OK = 200; | |
const ENCODING_FILE = 'binary'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use the Boolean `disabled` attribute | |
myCSS.disabled = true; | |
myJS.disabled = true; | |
// Create a stylesheet toggle button: | |
var stylesheet = document.getElementById('boot'), | |
btn = document.querySelector('.btn'); | |
btn.addEventListener('click', function () { | |
stylesheet.disabled = (stylesheet.disabled === false) ? true : false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var beep = require('beepbeep'); | |
var colors = require('colors'); | |
var onError = function(err) { | |
beep([200, 200]); | |
var formatOutput = function(context) { | |
var msg, file, line, description; | |
if(context == 'gulp-babel') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack') | |
const getConfig = require('hjs-webpack') | |
const isDev = (process.env.NODE_ENV || 'development') === 'development' | |
const isProd = !isDev && process.env.NODE_ENV === 'production' | |
const PRO_PUBLIC_PATH = '' | |
const DEV_PUBLIC_PATH = '' | |
const PUBLIC_PATH = isProd ? PRO_PUBLIC_PATH : DEV_PUBLIC_PATH | |
const GA_ID = 'UA-XXXXX-Y' |
Some articles:
- How to automate a visual regression test (WebdriverCSS)
- CSS Testing with PhantomCSS, PhantomJS, CasperJS and Grunt (PhantomCSS)
- Automating Style Guide-Driven Development (Style Guide Based Testing
- Automating CSS Regression Testing (BackstopJS)
Some tools:
OlderNewer