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>
#!/bin/bash | |
# limpa a pasta antiga | |
rm -rf ~/Sites/apache-tomcat-6.0.37/work/Catalina/localhost/ | |
FOLDER=$(pwd) | |
LocalHostFolder="~/Sites/apache-tomcat-6.0.37/conf/Catalina/localhost/" | |
ROOTFile=$LocalHostFolder"ROOT.xml" | |
XMLTemplate="<Context docBase=\"$FOLDER/web\" path=\"\"> | |
</Context>" |
window.ParsleyConfig = { | |
validators: { | |
cpf: { | |
fn : function ( val, req) { | |
val = $.trim(val); | |
val = val.replace('.',''); | |
val = val.replace('.',''); | |
cpf = val.replace('-',''); | |
while(cpf.length < 11) cpf = "0"+ cpf; |
<script src="//www.youtube.com/player_api"></script> | |
<script type="text/javascript"> | |
// attach our YT listener once the API is loaded | |
// | |
var $ = jQuery; | |
// listen for play/pause, other states such as rewind and end could also be added | |
// also report % played every second | |
function onPlayerStateChange(e) { | |
// e["data"] == YT.PlayerState.PLAYING && ; |
function checkCPF( val ) { | |
val = $.trim(val); | |
val = val.replace('.',''); | |
val = val.replace('.',''); | |
cpf = val.replace('-',''); | |
while(cpf.length < 11) cpf = "0"+ cpf; | |
var expReg = /^0+$|^1+$|^2+$|^3+$|^4+$|^5+$|^6+$|^7+$|^8+$|^9+$/; | |
var a = []; | |
var b = new Number; |
{"keys": ["super+shift+h"], "command": "encode_html_entities"} |
@mixin placeholder() { | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&:-moz-placeholder { | |
@content; | |
} | |
&::-moz-placeholder { |
var thePlayer = new YT.Player('yt-embed', { | |
height: '360', | |
width: '540', | |
videoId: 'bScJ8bbwMNM', | |
events: { | |
'onStateChange': function(e){ | |
switch (e.data) { | |
case YT.PlayerState.ENDED: | |
clearWatcherVideo(); | |
break; |
angular.module('myApp') | |
.directive('chosen',function(){ | |
'use strict'; | |
var linker = function(scope, element, attrs) { | |
var config = scope.$eval(attrs['chosen']), | |
list = attrs['chosenCollection']; | |
_.extend(config, {inherit_select_classes: true}); |
'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"); | |
} |