Sistema de retículas por Josef Muller-Brockmann
Manual de tipografía por John Kane
Interacción del color por Josef Albers
Design for Hackers: Reverse Engineering Beauty por David Kadavy
directives.uploadDrop = function (){ | |
return { | |
require: '?ngModel', | |
restrict: 'E', | |
template: '<div class="input-file" style="width: 150px;"><span class="glyphicon glyphicon-picture"></span></div>', | |
link: function (scope, element, attrs, ngModel){ | |
if (!ngModel) return; | |
element.bind('drop', function (event) { |
unsigned long interval=50; // the time we need to wait | |
unsigned long previousMillis=0; | |
void setup(){ | |
} | |
void loop(){ | |
if ((unsigned long)(millis() - previousMillis) >= interval) { | |
previousMillis = millis(); |
Estando aquí en Santander, | |
yo mi poema os relato, | |
Y quisiera en este rato, | |
expresar mi admiración, | |
por tan gran contribución, | |
de anónimos usuarios, | |
que sin lucro desarrollan, | |
WordPress y su base de datos. | |
La conforman doce tablas, |
// JavaScript hasClass, addClass, removeClass | |
//source: http://www.avoid.org/?p=78 | |
function hasClass(el, name) { | |
return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className); | |
} | |
function addClass(el, name) | |
{ | |
if (!hasClass(el, name)) { el.className += (el.className ? ' ' : '') +name; } |
<?php | |
//Adding custom class to posts is easy with the post_class filter | |
add_filter('post_class', 'custom_content_class'); | |
function custom_content_class($classes) { | |
$classes[] = 'custom_class'; | |
return $classes; | |
} |
# Create sudo user | |
adduser <user> | |
usermod -a -G sudo <user> | |
logout | |
# Update and clean | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get autoremove |
#!upstart | |
start on filesystem and started networking | |
stop on shutdown | |
expect fork | |
setuid ubuntu | |
env HOME="/home/ubuntu" |
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system / | |
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner |