Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
.mfp-fade.mfp-bg { | |
opacity: 0; | |
background: #00; | |
transition: all .3s; | |
} | |
.mfp-fade.mfp-bg.mfp-ready { opacity: .9; } | |
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; } | |
.mfp-fade.mfp-wrap .mfp-content { |
DELETE a,b,c | |
FROM {PREFIX}_posts a | |
LEFT JOIN {PREFIX}_term_relationships b ON (a.ID = b.object_id) | |
LEFT JOIN {PREFIX}_postmeta c ON (a.ID = c.post_id) | |
WHERE a.post_type = 'POST_TYPE' AND a.post_date < '2014-01-01' |
<?php | |
namespace Rbs\Bundle\CoreBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class EmailController extends Controller | |
{ | |
public function testAction() | |
{ |
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ } | |
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ } | |
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ } | |
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ } | |
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ } | |
@media (min-width:1281px) { /* hi-res laptops and desktops */ } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Facebook Puzzle: One Day Calendar</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<style> | |
#calendar { | |
overflow: hidden; | |
font-family: "Lucida Sans Unicode","Lucida Grande",Garuda,sans-serif;; |
{# | |
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ | |
Updated by: Simon Schick <simonsimcity@gmail.com> | |
Parameters: | |
* currentFilters (array) : associative array that contains the current route-arguments | |
* currentPage (int) : the current page you are in | |
* paginationPath (string) : the route name to use for links | |
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled) | |
* lastPage (int) : represents the total number of existing pages |
I keep most of my Apache/PHP/Percona (MySQL) configuration stuff in a local Git repository so I can track changes and I symlink to those from where they should be so you will see commands such as
sudo ln -s ~/Documents/configs/PHP/fat-tony.local/php55.ini /opt/local/etc/php55/php.ini
If you don’t have a similar setup, just copy your configuration files to where they need to be.
I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ | |
var casper = require("casper").create(); |
<snippet> | |
<content><![CDATA[ | |
<!doctype html> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> |