Skip to content

Instantly share code, notes, and snippets.

# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
#
# <VirtualHost *:80>
# ServerName example.com
# ServerAlias *.example.com
# </VirtualHost>
#
# 3) Set the current account from the subdomain
@meleyal
meleyal / svn-recipes.sh
Created March 2, 2009 18:14
SVN recipes
# limit the log to the last 4 commits
svn log --limit 4
# show the log for a particular file
svn log foo.js
# create a new repo
svn import http://repo/path/<new-repo> -m "Initial import"
# create a new branch
@meleyal
meleyal / theme.jstn.cc
Created February 10, 2010 11:31
theme.jstn.cc
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title>
{block:Description}
<meta name="description" content="{MetaDescription}">
{/block:Description}
@meleyal
meleyal / console.log
Created August 3, 2010 15:44
console.log textmate snippet
// Activation: Tab Trigger > log
console.log($1);
@meleyal
meleyal / git-recipes.sh
Created August 16, 2010 13:38
git recipes
# remove delete files
git rm $(git ls-files -d)
# delete remote branch
git push origin :branch-to-delete
@meleyal
meleyal / 960.css
Created December 7, 2010 16:44
custom version of 960.gs
/*! ------------------------------------------------------------------------------------------------
* 960.css
* http://gist.github.com/732028
* Custom version of http://960.gs/
* Licensed under GPL and MIT
*
* Custom:
* - underscores > dashes
* - container > wrap
* - alpha > first
@meleyal
meleyal / meleyal.html
Created February 3, 2011 20:07
meleyal.com tumblr theme
<!DOCTYPE html>
<html lang="en">
<head>
<!--
meleyal
http://meleyal.com
https://gist.github.com/810100
@meleyal
meleyal / widget-template.js
Created February 10, 2011 10:40 — forked from ehynds/widget-template.js
jquery.ui.widget template
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.
@meleyal
meleyal / $.widget.bridge.template.js
Created February 17, 2011 11:17
jQuery $.widget.bridge template
// http://www.erichynds.com/jquery/using-jquery-ui-widget-factory-bridge/
var Widget = function(options, element){
this.options = options;
this.element = element;
this._init();
}
Widget.prototype = {
@danott
danott / modernizr-tests.js
Created March 4, 2011 16:55
Custom Modernizr tests that are useful.
/* modernizr-test.js
* Daniel Ott
* 3 March 2011
* Custom Tests using Modernizr's addTest API
*/
/* iOS
* There may be times when we need a quick way to reference whether iOS is in play or not.
* While a primative means, will be helpful for that.
*/