Skip to content

Instantly share code, notes, and snippets.


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

View GitHub Profile
fizerkhan / dabblet.css
Created Mar 13, 2014
The first commented line is your dabblet’s title
View dabblet.css
* 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 / gist:10592136
Last active Aug 29, 2015
Git merge Vs Git Rebase
View gist:10592136

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

View gist:3d4c3514b4606b3933ee
background: #ffdb4c;
height: 300px;
position: relative;
top: 50%;
transform: translateY(-50%);

Business Models


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

View chat-frontend.js
/*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 / main.js
Last active Aug 29, 2015
Angular Controller and Factory.
View main.js
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;
fizerkhan / gist:e2244e4a489340e3bcb0
Last active Aug 29, 2015
2Checkout issue When stoping recurring.
View gist:e2244e4a489340e3bcb0
java.lang.NoClassDefFoundError: javax.naming.ldap.LdapName is a restricted class. Please see the Google App Engine developer's guide for more details.
at org.apache.http.conn.ssl.AbstractVerifier.extractCNs(
at org.apache.http.conn.ssl.AbstractVerifier.getCNs(
at org.apache.http.conn.ssl.AbstractVerifier.verify(
at org.apache.http.conn.ssl.AbstractVerifier.verify(
at org.apache.http.conn.ssl.SSLSocketFactory.verifyHostname(
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(
fizerkhan /
Created Oct 4, 2014
Send Plivo SMS from Google App Engine
import java.util.LinkedHashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONObject;
import com.plivo.helper.api.client.RestAPI;
import com.plivo.helper.api.response.message.MessageResponse;