background preloader

PHP snippets

PHP snippets

http://jonasjohn.de/snippets/php/

Main Page - CS61Wiki Computer Science 61 and E61Systems Programming and Machine Organization Harvard School of Engineering and Applied Sciences Fall 2013Eddie Kohler Lectures: Tuesday/Thursday, 2:30-4:00Location: Northwest B103 Syllabus | Schedule | Section notes | Course staff, office hoursInfrastructure | Git | Resources | Coding style | C Patterns Extension school | Videos | Grading server | Lecture feedback Improve website load time by 500% with 3 lines of code Major New Update - PHP SPEEDY: latest version available here There are 4 relatively easy ways by which you can speed up the time it takes a browser to download a page: Make fewer HTTP requestsAdd a far-future expires headerGzip your page's componentsMinify your JavaScript, CSS and HTML Following on from my post on joining CSS and JavaScript files, I have written a PHP script which will automatically do all of the above. All you have to do is call the following at the top of your page: The code

extremely useful PHP classes PHP PSD Reader A few weeks ago, I wrote an article about this PHP which allow you to display any Adobe PSD file on screen. Very usefull to create preview of PSDs designed for clients, for example.Download Browser detect One of the most common (and boring) problem for front-end developers is definitely cross-browser compatibility. Veerle's blog 3.0 - Webdesign - XHTML CSS It was some time ago that someone asked me if I knew how this beautiful geometric flower by Paulius Kairevičius was created. I remember that I gave it a try for a few minutes, but didn't succeed in exactly reproducing it. Today it caught my eye again and I thought it would be a cool idea to write a tutorial about these kind of geometric objects. Bare in mind that the creations in my article are inspired by this design on Dribbble, and that I only try to re-create this for educational purposes. These days the easiest and most practical way to add a map to a site is using Google Maps, but for printed matter we need to draw this map. Today I'm showing you how I drew the roadmap that I used in my previous Illustration post "The power of Illustrator’s Appearance panel and Graphic Styles".

Ten PHP Best Practices Tips that will get you a job Posted by blake on Jun 4, 2008 in Code, Performance, PHP | 167 comments The last couple of weeks have been quite the experience for me. I was part of a big layoff at my former company, which was interesting. I've never been in that position before, and it's hard not to take it personally. Rocket Commander Tutorials Welcome to the Tutorials of Rocket Commander. You will learn step by step in ten 30-minute video tutorials how to develop a game like Rocket Commander. This can be your introduction into the world of game development. Tutorial - Learn Python in 10 minutes NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format. All future updates are free for people who purchase it. Preliminary fluff

10 code snippets for PHP developers « The html blog I’ve compiled a small list of some useful code snippets which might help you when writing your PHP scripts… Email address check Checks for a valid email address using the php-email-address-validation class. Source and docs: 01.include('EmailAddressValidator.php');

Showing Product Information With CSS3 3D Transform There are many ways on showing product information, for example when hover the product image, the product information is sliding above or even using pop up. In this tutorial I’m going to share how to show our product information with cube style using CSS3 3D Transform. The Result Before talking about the technique following image is the result we want to achieve, the product image is visible while the product information is hidden. Top 20+ MySQL Best Practices Database operations often tend to be the main bottleneck for most web applications today. It's not only the DBA's (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. In this article, I'll list some MySQL optimization techniques for programmers. Before we start, be aware that you can find a ton of useful MySQL scripts and utilities on Envato Market.

Beginning Game Development: Part I – Introduction Part I – Introduction Welcome to the first article of an introductory series on game programming using the Microsoft .NET Framework and managed DirectX 9.0. This series as aimed at beginning programmers who are interested in developing a game for their own use with the .NET Framework and DirectX. The Evolution of a Programmer High School/Jr.High First year in College program Hello(input, output) begin writeln('Hello World') end. Senior year in College sample PHP page I'll start out by explaining some of the things I don't like about PHP. If I get this all out of the way, you can get to the useful stuff. I'll use this opportunity to say something instructive about how to use the language, based on its strengths and weaknesses, though, so it's not wasted time entirely.

715 Awesomely Simple and Free CSS Layouts Frustrated with the quality of free CSS templates online but aren’t quite to the level of building your own? Tired of spending hours trying to customize lame pre-fab designs? Today we bring you over seven hundred freely downloadable CSS templates that focus on providing you with only a basic layout to build upon. Using these cross-browser layouts you can avoid endless CSS positioning woes and focus on what you’re good at: design. Who Are These For? Many of you have been in the design game for years but are only now just beginning to create websites and code them by hand.

Related: