Hide and show full size DIV containers with CSS3 transitions on translate, rather than top, right, bottom, or left offset.
A Pen by Andrea Collet on CodePen.
#!/bin/sh | |
# | |
# A hook script to switch between parameters files when checking out different branches of the same Symfony2 repo | |
# | |
# To enable this hook, rename this file to "post-checkout". | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 |
Hide and show full size DIV containers with CSS3 transitions on translate, rather than top, right, bottom, or left offset.
A Pen by Andrea Collet on CodePen.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Page title</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
</head> | |
<body> |
{ | |
"folders": [{ | |
"follow_symlinks": true, | |
"path": "www/htdocs", | |
// folder_exclude_patterns and file_exclude_patterns control which files | |
// are listed in folders on the side bar. These can also be set on a per- | |
// project basis. | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".sass-cache", "vendor/", "app/storage/cache/", "app/storage/logs/", "docs/"], | |
"file_exclude_patterns": ["*.sublime-*", "*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj", "*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.scssc"], | |
// These files will still show up in the side bar, but won't be included in |
Tabella | |
@SERVER@-@DATABASE@-@TABLE@-%Y%m%d-%H%M%S | |
Database | |
@SERVER@-@DATABASE@-%Y%m%d-%H%M%S | |
Server | |
@SERVER@-%Y%m%d-%H%M%S |
var vimeoRegexp = /(?:https?\:)?\/\/(?:www\.|player\.)?vimeo.com\/(?:video\/|channels\/|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/; | |
var vimeoVideoUrl = "//player.vimeo.com/video/2243632"; | |
var vimeoVideoArray = vimeoRegexp.regexp(vimeoVideoUrl); | |
var vimeoVideoID = vimeoVideoArray[3]; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Facebook batch photo download</title> | |
<meta name="description" content="This script will hopefully last longer than other apps. At lest until FB will change their damnd API again"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css"> |
// find all anchor tags without 'title' attribute | |
<a\s+((class|id|href|)="[^"]+"\s*)+/?> | |
// find all img tags without 'alt' attribute | |
<img\s+((width|height|border|class|id|src|usemap|hspace|vspace)="[^"]+"\s*)+/?> |
// init rollovers on images | |
imgRollover: function() { | |
var $app = this; | |
$.each($app.$hoverable, function(index, val) { | |
var $this = $(this); | |
// if the hoverable object is <img> | |
if (typeof $this === 'object' && $this.is("img")) { |
<div id="fb-root"></div> | |
<script type="text/javascript"> | |
var goTo = true; | |
function goToLogIn() { | |
if (goTo) { | |
self.location = "{{ path('facebook_security_check') }}"; | |
} | |
} | |
window.fbAsyncInit = function() { | |
FB.init({ |