Skip to content

Instantly share code, notes, and snippets.

View jfgomez86's full-sized avatar

Jose Felix Gomez jfgomez86

View GitHub Profile
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 13-Mar-2009. Jan 2008
" Version: 2.3
" WebPage: http://github.com/mattn/gist-vim/tree/master
" Usage:
"
" :Gist
" post whole text to gist.
#!/usr/bin/env ruby
=begin
INSTALL:
curl http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
chmod 755 gist &&
sudo mv gist /usr/local/bin/gist
@jfgomez86
jfgomez86 / DevelopmentProcess.markdown
Created November 23, 2010 03:55
A Simplified Development Process

Introduction

In this document, the following roles are mentioned:

CLIENT: Also known as the Customer. The Client requests a service or product from us.

DEVELOPERS: Builds the website functionality and behavior. Translates designs produced by Designers to HTML/CSS + Business Code that drives the

@jfgomez86
jfgomez86 / Rakefile
Created November 30, 2010 20:31
Raketask for generating jsdoc documentation
desc "Generate Documentation"
task :doc do
root = File.dirname __FILE__
perl = %x[which perl].chomp
jsdoc_options = [
"--recursive",
"--directory #{root}/doc",
"--project-name AwesomeProject"
].join(" ")
$(field).keydown(function () {
var $self = this;
if ($(this).data("lastTimeout")) clearTimeout($(this=).data("lastTimeout"));
$(this).data("lastTimeout", setTimeout(function () {
$.get("/subdomain_validator", {subdomain: $($self).val()}, function (data) {
// ...
});
}, 200));
});
" Vim color file
" Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@jfgomez86
jfgomez86 / nginx.conf
Created February 20, 2011 16:48
Sample nginx config file.
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
@jfgomez86
jfgomez86 / Blueprint debug.
Created June 1, 2011 15:50 — forked from miguelperez/Blueprint debug.
Blueprint debug script. Just append this to the head of the HTML file that should be including the blueprint files.
<!-- I took this code from somewhere, just can recall now. -->
<script type="text/javascript">
function toggleGrid() {
var toggle = document.getElementById('toggleGrid');
var container;
if(toggle.innerHTML == 'Hide Grid') {
toggle.innerHTML = 'Show Grid';
ripClass('');
}
@jfgomez86
jfgomez86 / .zshrc
Created July 11, 2011 20:14
My .zshrc customizations
###
# Shortcut to projects directory: you can replace 'p' with your favorite word/character.
# Autocompleter enabled! Try: `p <tab>` ;)
#
PROJECTS_DIR="/Users/jfgomez86/Projects"
p() {
PROJECT_NAME="$1";
cd "$PROJECTS_DIR/$PROJECT_NAME";
}
@jfgomez86
jfgomez86 / tweet.rb
Created July 29, 2011 16:10
Finding latest tweets by unique users
##
# Find latest *n* tweets, but don't repeat tweets by users.
# Example:
#
# If we have the following table:
#
# id | user_id | created_at
# 1 | 1 | 3 days ago
# 2 | 2 | 3 days ago
# 3 | 1 | 2 days ago