Skip to content

Instantly share code, notes, and snippets.

@gitmasta
gitmasta / 1020grid.css
Created December 2, 2011 11:23
1020grid
/*
Variable Grid System.
Learn more ~ http://www.spry-soft.com/grids/
Based on 960 Grid System - http://960.gs/
Licensed under GPL and MIT.
*/
/*
Forces backgrounds to span full width,
@gitmasta
gitmasta / autoload.php
Created December 21, 2011 11:14
autoload.php
<?php function __autoload($class_name) {
if(class_exists($class_name))
return new $class_name();
else if(file_exists("app/$class_name.class.php"))
{
include_once "app/$class_name.class.php";
return new $class_name();
}
else throw new Exception("Class not found.");
}
@gitmasta
gitmasta / jquery-plugin.txt
Last active October 2, 2015 00:28
jquery plugin
---superfish
users.tpg.com.au/j_birch/plugins/superfish/
---jquery drop box
http://jamielottering.github.com/DropKick/
---scroll pane
http://jscrollpane.kelvinluck.com
----scroll path
http://joelb.me/scrollpath/
----background stretch
http://srobbin.com/jquery-plugins/backstretch/
Pluginception Using a Plugin to Create a Plugin in WordPress
http://wordpress.org/extend/plugins/pluginception/
______________________________________________________________
Powerful fields for WordPress developers.
http://www.advancedcustomfields.com
h1. Sublime Text 2 - Useful Shortcuts (PC)
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Checbox</title>
</head>
<body>
<?php
$check=array();
if(isset($_POST['check']) and is_array($_POST['check']))