- Describe the benefits of using responsive design
- Describe what it means to go mobile first
- Explain the difference between a responsive website and a mobile-specific website
- Describe how to test responsive layouts while developing
- Use media queries to target viewport sizes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This hosts file is brought to you by Dan Pollock and can be found at | |
| # http://someonewhocares.org/hosts/ | |
| # You are free to copy and distribute this file for non-commercial uses, | |
| # as long the original URL and attribution is included. | |
| #<localhost> | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $parts = secondsToDuration(61); | |
| assert($parts['hours'] === 0); | |
| assert($parts['minutes'] === 1); | |
| assert($parts['seconds'] === 1); | |
| assert('PT0H1M1S' === formatDuration($parts)); | |
| $parts = secondsToDuration(7202); | |
| assert($parts['hours'] === 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2 - Autos & Vehicles | |
| 1 - Film & Animation | |
| 10 - Music | |
| 15 - Pets & Animals | |
| 17 - Sports | |
| 18 - Short Movies | |
| 19 - Travel & Events | |
| 20 - Gaming | |
| 21 - Videoblogging | |
| 22 - People & Blogs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Created by @ibnux January 2015 | |
| Use with your own risk | |
| This script for converting all videos on your NAS | |
| i use this script for converting video on my Synology NAS | |
| This will recursively convert all your video | |
| put this in your home folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| * This is a quick way to turn a simple text file | |
| * with a very long list of urls in a text file (sitemap-urls.txt) | |
| * Where "very long" is an expected url number greater than 10,000 | |
| * If loaded without a valid query parameter "page" it will load a | |
| * Site Index site map, otherwise load the individual XML site map | |
| * 10,000 urls into a valid XML Sitemap: | |
| * http://en.wikipedia.org/wiki/Sitemaps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="robots" content="noodp, noydir" /> | |
| <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
| <link rel="canonical" href="http://mysite.com/" /> | |
| <link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? php | |
| include_once $_SERVER['PHP_ROOT'].'/html/init.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/home.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/requests.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/poke.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/share.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/orientation.php'; | |
| include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use Mysql; | |
| use strict; | |
| use vars qw($school_name); | |
| use vars qw($pass); | |
| require "./cgi-lib.pl"; |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
NewerOlder