Skip to content

Instantly share code, notes, and snippets.

View fizerkhan's full-sized avatar

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

View GitHub Profile
@fizerkhan
fizerkhan / gist:7837764
Last active December 30, 2015 13:49
Pipe input Stream to S3
var fs = require('fs')
, amazonS3 = require('awssum-amazon-s3');
// Create S3 Object
var s3 = new amazonS3.S3({
'accessKeyId' : 'YOUR_ACCESS_KEY',
'secretAccessKey' : 'YOUR_SECRET_ACCESS_KEY',
'region' : amazonS3.US_EAST_1
});
@fizerkhan
fizerkhan / dabblet.css
Created March 13, 2014 17:21
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
div {
padding: 20px;
border: 1px solid #999;
width: 40px;
height: 40px;
box-shadow: 0 5px 5px -5px #000000;
@fizerkhan
fizerkhan / gist:10592136
Last active August 29, 2015 13:59
Git merge Vs Git Rebase

Git merge vs rebase

  • git pull --rebase instead of git pull

  • git rebase -i @{u} before git push

  • (on “feature”) git merge master to make feature compatible with latest master

  • (on “master”) git merge --no-ff feature to ship a feature

.children{
background: #ffdb4c;
height: 300px;
position: relative;
top: 50%;
transform: translateY(-50%);
}
@fizerkhan
fizerkhan / income-tax-india.md
Last active June 7, 2018 07:04
Indian Income Tax questions
  1. What to write in the ITR-V form at I further declare that I am making this return in my capacity as ----------?

Answer: In case you have used e-filing (either directly through NSDL or through Skorydov etc), you may leave it blank. If this was filed by any other CA, then he/she has to fill their name and designation.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google

This is a post by Joel Spolsky. The original post is linked at the bottom.

This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.

The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju

/*global $, Backbone, window, console, WebSocket, _ */
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var $content = $('#content')
, $input = $('#input')
, $status = $('#status')
// my color assigned by the server
@fizerkhan
fizerkhan / main.js
Last active August 29, 2015 14:05
Angular Controller and Factory.
var myapp = angular.module('myapp', []);
myapp.factory('awesomeService', function($http) {
return {
GetUser: function() {
return $http.get("some url here").then(function(response) {
//Process Stuff Here
return response;
});
},
}