# Actualización de paquetes
apt-get update
apt-get upgrade
# Instalación doutros paquetes
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
;(function ($, window, document, undefined) { | |
var pluginName = "name", defaults = {}; | |
function Plugin (element, options) { | |
this.element = element; | |
this.settings = $.extend({}, defaults, options); | |
this.init(); | |
} |
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
# Undo latest commit | |
git reset --soft HEAD^ | |
# Undo the changes of a commit (creating a new commit) | |
git revert <commit> | |
# Undo latest merge (before push) | |
git reset --merge ORIG_HEAD | |
# Merge a branch using the version of the current branch in case of conflicts |
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
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
// Existe AMD. | |
define(['jquery'], factory); | |
} else { | |
// Non existe, busca en global | |
factory(jQuery); | |
} | |
}(function ($) { | |
//Aqui o teu plugin |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<!-- | |
███████ | |
██████▌ | |
▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄ ██████ | |
▄███████████▄ ▄███████████▄ ▐█████▄███████▄▄███████▌ █████▌ | |
▄██████▀ ▀████████████▀ ▀████████████▀▀███████▀▀███████ █████ |
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
(function (root, factory) { | |
if(typeof define === "function" && define.amd) { | |
// Now we're wrapping the factory and assigning the return | |
// value to the root (window) and returning it as well to | |
// the AMD loader. | |
define(["postal"], function(postal){ | |
return (root.myModule = factory(postal)); | |
}); | |
} else if(typeof module === "object" && module.exports) { | |
// I've not encountered a need for this yet, since I haven't |
Desbloquear gmail para enviar correos dende unha web:
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 through = require('through2'); | |
const matter = require('front-matter'); | |
module.exports = function () { | |
return through.obj(function (file, encoding, callback) { | |
callback(null, run(file)); | |
}); | |
} | |
function run (file) { |
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 | |
/** | |
* This is project's console commands configuration for Robo task runner. | |
* | |
* @see http://robo.li/ | |
*/ | |
class RoboFile extends \Robo\Tasks | |
{ | |
private $dir; | |
private $className; |
OlderNewer