Skip to content

Instantly share code, notes, and snippets.

View fizerkhan's full-sized avatar

Fizer Khan (பைசர் கான்) fizerkhan

View GitHub Profile
@fizerkhan
fizerkhan / gist:2364466
Created April 12, 2012 03:37
I'd like to double click this td element and have #heythere toggle too
HTML
----
<table class="table table-striped">
<tbody>
<tr class="diary_hour"><!-- Hour Row Start -->
<td class="span1" data-toggle="collapse" data-target="#heythere" title="Got a question? Drop us a line.">
<h4>Click Here</h4>
</td>
<td class="test"> <!-- I'd like to double click this td element and have #heythere toggle too -->
@fizerkhan
fizerkhan / gist:3106027
Created July 13, 2012 17:09 — forked from paulirish/gist:3098860
Open Conference Expectations

Open Conference Expectations

This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.

We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.

These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea

@fizerkhan
fizerkhan / gist:3112148
Created July 14, 2012 17:05 — forked from turtlesoupy/nginx.conf
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@fizerkhan
fizerkhan / build.xml
Created July 16, 2012 15:55 — forked from millermedeiros/build.xml
RequireJS optimizer Ant task
<?xml version="1.0" encoding="utf-8"?>
<project name="sample-require-js" default="" basedir=".">
<!-- properties -->
<property name="r.js" value="_build/rjs/r.js" />
<property name="closure.jar" value="_build/closure/compiler.jar" />
<property name="rhino.jar" value="_build/rhino/js.jar" />
<property name="js.build" value="_build/js.build.js" />
<property name="css.build" value="_build/css.build.js" />
@fizerkhan
fizerkhan / server.js
Created August 10, 2012 05:56 — forked from marfalkov/server.js
Using winston-mongodb with a scalable nodejs application on OpenShift
#!/bin/env node
// OpenShift sample Node application
var winston = require('winston');
var MongoDB = require('winston-mongodb').MongoDB;
winston.add(MongoDB, {
db: process.env.OPENSHIFT_APP_NAME
, host: process.env.OPENSHIFT_NOSQL_DB_HOST
, port: parseInt(process.env.OPENSHIFT_NOSQL_DB_PORT, 10)
@fizerkhan
fizerkhan / html
Created December 8, 2012 06:12
Contact Form in Google App Engine
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>A form</title>
</head>
<body>
<form action="feedback" method="post">
<!-- Simple text field -->
@fizerkhan
fizerkhan / index.html
Created December 12, 2012 05:29
A CodePen by Sara Soueidan. Responsive CSS3 Side Navigation Menu - Media Queries Transitions (resize the window slowly to see the transitions), nav items slide out on hover when it collapses on smaller screens.
<h1>Slowly resize screen to see the width transition</h1>
<div class="nav-container">
<ul class="nav">
<li class="active">
<a href="#">
<span class="icon-home"></span>
<span class="text">home</span>
</a>
</li>
<li>

Project

Description: What does this project do and who does it serve?

Project Setup

How do I, as a developer, start working on the project?

  1. What dependencies does it have (where are they expressed) and how do I install them?
  2. How can I see the project working before I change anything?

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE