Skip to content

Instantly share code, notes, and snippets.

View zellwk's full-sized avatar

Zell Liew zellwk

View GitHub Profile
@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",
@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 / 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 / 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 / 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
*/

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 / SassMeister-input-HTML.html
Created August 5, 2014 02:30
Generated by SassMeister.com.
<div class="wrap">
<div class="content">
<h2>Content</h2>
</div>
<div class="sidebar1">
<h2>Sidebar 1</h2>
</div>
<div class="sidebar2">
<h2>Sidebar 2</h2>
</div>
@zellwk
zellwk / SassMeister-input-HTML.html
Created August 5, 2014 09:40
Generated by SassMeister.com.
<div class="wrap">
<div class="content">
<h1>This is Chapparal</h1>
<h2>Created by Adobe type designer Carol Twombly, Chaparral combines the legibility of slab serif designs popularized in the 19th century with the grace of 16th-century roman book lettering. By Adobe</h2>
<div class="text">
<div class="text__child">
<p>
The result is a versatile, hybrid slab-serif design, a unique addition to the Adobe Originals family of typefaces. Unlike “geometric” slab serif designs, Chaparral has varying letter proportions that give it an accessible and friendly appearance in all weights from light to bold.
</p>
@zellwk
zellwk / SassMeister-input-HTML.html
Last active August 29, 2015 14:04
Generated by SassMeister.com.
<div class="wrap">
<div class="content">
<h1>This is Chapparal</h1>
<h2>Created by Adobe type designer Carol Twombly, Chaparral combines the legibility of slab serif designs popularized in the 19th century with the grace of 16th-century roman book lettering. By Adobe</h2>
<div class="text">
<div class="text__child">
<p>
The result is a versatile, hybrid slab-serif design, a unique addition to the Adobe Originals family of typefaces. Unlike “geometric” slab serif designs, Chaparral has varying letter proportions that give it an accessible and friendly appearance in all weights from light to bold.
</p>
@zellwk
zellwk / SassMeister-input-HTML.html
Created August 5, 2014 14:34
Generated by SassMeister.com.
<div class="wrap">
<div class="content">
<h1>This is Chapparal</h1>
<h2>Created by Adobe type designer Carol Twombly, Chaparral combines the legibility of slab serif designs popularized in the 19th century with the grace of 16th-century roman book lettering. By Adobe</h2>
<div class="text">
<div class="text__child">
<p>
The result is a versatile, hybrid slab-serif design, a unique addition to the Adobe Originals family of typefaces. Unlike “geometric” slab serif designs, Chaparral has varying letter proportions that give it an accessible and friendly appearance in all weights from light to bold.
</p>