This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/git/website.git && ~/git/cd website.git | |
git init --bare | |
mkdir ~/webapps/website | |
git config core.worktree /home/rafi/webapps/website ; NO TRAILING SLASH!!! Will screw up things real bad. | |
git config core.bare false | |
git config receive.denycurrentbranch ignore | |
; create a hook | |
cat > hooks/post-receive | |
#!/bin/sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('form').live('submit', function() | |
{ | |
var form = $(this); | |
var action = form.attr('action'); | |
$.post(action, form.serialize(), function(response) | |
{ | |
form.replaceWith(response); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
CREATE TABLE IF NOT EXISTS `associates` ( | |
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(64) NOT NULL, | |
`website` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `name` (`name`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" charset="utf-8" src="jquery.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() | |
{ | |
var cb = $('<div class="color"/>').appendTo('body'); | |
var c1 = [255, 0, 0]; | |
var c2 = [0, 255, 255]; |
NewerOlder