Skip to content

Instantly share code, notes, and snippets.

View fizerkhan's full-sized avatar

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

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Timeline</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
</head>
<body>
<p>This is a basic example of creating your own Timeline for viewing in the Web Inspector Timeline view.</p>
<p>Save the string logged to the console in a JSON file. Then load into the Timeline.</p>
</body>
@fizerkhan
fizerkhan / debug_log.js
Last active August 29, 2015 14:07
Debug log in production
// Bad Code
// It check if condition every time
var log = function () {
if (location.host !== 'www.prodcution.com') {
window.console.log.apply(console.log, arguments);
}
}
@fizerkhan
fizerkhan / hn_news.md
Last active August 29, 2015 14:08
Add hacker news button in Octopress

Steps

  1. Create a file hn_like.html with following contents under source/_includes directory
{% if site.hn_like_button %}
<!--
hn like button plugin for jekyll/octopress
Author: dryman (Felix Ren-Chyan Chern)
@fizerkhan
fizerkhan / fonts.md
Last active August 29, 2015 14:10
My Favourite free fonts
@fizerkhan
fizerkhan / app-icons.md
Last active August 29, 2015 14:11
Generate Mobile App icons from any image

Create mobile app icons and web icons

Generate Shadow Icons in no time for both Android and iOS.

It helps to convert any image into app icons for both Android and iOS.

@fizerkhan
fizerkhan / resources.md
Created January 12, 2015 11:07
Great resource for building web sites
@fizerkhan
fizerkhan / tips.md
Created January 14, 2015 06:43
Node Production Tips
  1. Use PM2 to restart server if it is crashed.

@fizerkhan
fizerkhan / sample.html
Created January 19, 2015 13:46
Get information
<!doctype html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.js"></script>
</head>
<body>
<h2>Select the City:</h2>
<form id="myForm" name="myForm" action="">
<select name="" id="city">
global
log 127.0.0.1 local0 notice
maxconn 50000
daemon
stats socket /tmp/proxystats level admin
defaults
log global
mode http
option httplog
option dontlognull
a:4853175
sa:1
pl:1422623387977
v:476.c73f3a6
t:Unnamed Transaction
xhr:[{
"params": {
"method": "GET",
"host": "www.quadsrm.com:80",
"pathname": "/account/short",