This is an incomplete list:
- Make spritesheet of all images.
- Use CDN for static websites
- Use Audit tools (Chrome)
- Google PageSpeed
- Minify the CSS and JavaScript you are using
- Reduce the HTTP request
- Optimize the images as much possible
This is an incomplete list:
<!DOCTYPE html> | |
<html dir="ltr" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> Loopingtriangle </title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> | |
</head> | |
<body> | |
<script charset="utf-8"> |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<!-- application info: | |
svn_revision: 9501 | |
build_date: Dec 10 2013, 22:28:10 | |
gcc_version: 4.7.1 | |
Windows Unicode --> | |
<app> | |
<locale> | |
<CATALOGNUM int="61" /> |
" {{ | |
se nocompatible autoindent autoread autowrite autowriteall confirm cindent expandtab foldenable gdefault hidden hlsearch ignorecase incsearch lazyredraw lbr nu ruler sm sc smd scs smartindent sta spell splitright ttyfast undofile noerrorbells wildmenu wrap equalalways splitbelow wrapscan list | |
" }} | |
se dir=~/tmp/vimswapfiles//,~/.vim/vimswapfiles// bs=eol,start,indent,start cb=unnamed cc=-1 cot=menu,longest,preview enc=utf-8 ffs=unix fdm=marker foldlevel=0 fmr={{,}} foldopen=block,hor,insert,jump,mark,percent,quickfix,search,tag,undo formatoptions=tcqrn1 history=100 laststatus=2 matchtime=1 mouse=a nrformats=octal,hex,alpha scrolloff=5 shiftwidth=4 softtabstop=4 spl=en_us timeoutlen=300 tw=77 ts=4 undolevels=1000 udir=~/tmp/vimundo,~/.vim/vimundo uc=10 whichwrap+=<,>,[,],h,l wildchar=<tab> wig=*.o,*.obj,*.bak,*.exe,*.py[co],*.swp,*~,*.pyc,.svn guioptions-=T lcs=tab:?\ ,eol:¬,trail:·,nbsp:? | |
" ESSENTIALS | |
" ========== | |
" {{ | |
filetype plugin indent on | |
let snips_author = 'Santosh Kumar' |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> Practicing </title> | |
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet"> | |
</head> | |
<style type="text/css"> | |
.thumbnail-grid { | |
user-select: none |
/*=================== | |
ADD IMAGE TO FEED | |
===================*/ | |
// display featured post thumbnails in RSS feeds | |
function WPGood_rss_thumbs( $content ) { | |
global $post; | |
if( has_post_thumbnail( $post->ID ) ) { | |
$content = '<figure>' . get_the_post_thumbnail( $post->ID, 'large' ) . '</figure>' . $content; | |
} |
function arrayMinimum(inputArray) { | |
var indexOfMinimum = 0; | |
for (var i = 1; i < inputArray.length; i++) { | |
if (inputArray[i] < inputArray[indexOfMinimum]) { | |
indexOfMinimum = i; | |
} | |
} | |
return inputArray[indexOfMinimum] ; | |
} |
function digitSum(n) { | |
n = parseInt(n).toString() | |
var sum = 0; | |
for (var i = 0; i < n.length; i++) { | |
sum += parseInt(n[i]); | |
} | |
return sum; | |
} |
from flask import Flask, request | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
user_agent = request.headers.get('User-Agent') | |
return '<p>Your browser is {}!</p>'.format(user_agent) | |
@app.route('/user/<name>') | |
def user(name): |