Align a element base on multiples values, like a, top, bottom, middle, right, left and center.
<div class="recipes clearfix" align="middle center" align-watch="recipes">
...
</div>
| 'use strict'; | |
| // Add ECMA262-5 method binding if not supported natively | |
| // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind | |
| if (!Function.prototype.bind) { | |
| Function.prototype.bind = function (oThis) { | |
| if (typeof this !== "function") { | |
| // closest thing possible to the ECMAScript 5 internal IsCallable function | |
| throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
| } |
| $('#form-email').unbind('keypress.pogMask').bind('keypress.pogMask', function(e){ | |
| return !!String.fromCharCode(e.keyCode).match(/^[a-z0-9_@\-\. ]+$/gi); | |
| }).unbind('keyup.pogMask').bind('keyup.pogMask', function(){ | |
| $(this).val($(this).val().replace(/@{2,}/g, '@')); | |
| $(this).val($(this).val().replace(/\s{2,}/g, ' ')); | |
| }); |
| $('#form-name, #form-surname').unbind('keypress.pogMask').bind('keypress.pogMask', function(e){ | |
| return !!String.fromCharCode(e.keyCode).match(/^[a-z ]+$/gi); | |
| }).unbind('keyup.pogMask').bind('keyup.pogMask', function(){ | |
| $(this).val($(this).val().replace(/\s{2,}/g, ' ')); | |
| }); |
| #!/usr/bin/env ruby | |
| require 'socket' | |
| =begin | |
| Current workflow... | |
| Geomit opens (TCP Server loads) | |
| Pre-commit hook triggers | |
| Pre-commit opens CWD/contributors.geojson | |
| if something | |
| Pre-commit hook sends CWD/contributors.geojson and hangs |
| //validação do formulario | |
| jQuery.validator.addMethod("cpf", function(value, element) { | |
| log("jquery.validator CPF", value); | |
| var cpf = value.replace(/\./g,'').replace(/\-/,''); | |
| var numeros, digitos, soma, i, resultado, digitos_iguais; | |
| digitos_iguais = 1; | |
| if (cpf.length < 11) |
| #!/bin/sh | |
| afplay -v 0.1 /System/Library/Sounds/Tink.aiff > /dev/null 2>&1 |
| #!/bin/sh | |
| afplay -v 0.1 /System/Library/Sounds/Pop.aiff > /dev/null 2>&1 |
| #!/bin/sh | |
| terminal-notifier -message "Pra abrir o Transmit para fazer é só clicar aqui!" -title "Vai fazer deploy?" -group 1911 -execute "open /Applications/Transmit.app/" |