Skip to content

Instantly share code, notes, and snippets.

View zellwk's full-sized avatar

Zell Liew zellwk

View GitHub Profile

Web Design Contract for OkDork readers (open-source)

Between [your name] and [their name]

Summary:

You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.

What do both parties agree to do?

@zellwk
zellwk / gist:8050648
Last active December 31, 2015 21:59
Render Handlebars Template with AJAX
/**
* Requests for Handlebars Templates with jquery ajax function
*
* Usage:
* var template = Handlebars.renderTemplate('templateName', templateData);
*
* Feel free to append template anywhere else after.
*
* Code adapted from Tal Bereznitskey's Handlebars.getTemplate gist at https://gist.github.com/berzniz/2900905
*/
@zellwk
zellwk / wp-config.php
Created December 19, 2013 13:23
wp config
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@zellwk
zellwk / wp-local.config.php
Created December 19, 2013 13:22
wp local config
<?php
// Local server settings
// Local Database
define('DB_NAME', 'local_db');
define('DB_USER', 'local_db_user');
define('DB_PASSWORD', 'local_db_pw');
define('DB_HOST', 'localhost');
// Overwrites the database to save keep client from editing the DB
@zellwk
zellwk / gist:6559846
Created September 14, 2013 08:08
Sublime text 3 key bindings
[{
"keys": ["super+alt+left"],
"command": "set_layout",
"args": {
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1]
]
@zellwk
zellwk / gist:6559837
Created September 14, 2013 08:07
Sublime text 3 User Preference Settings
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"file_exclude_patterns": [
".DS_Store",
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",