Skip to content

Instantly share code, notes, and snippets.

View yuxel's full-sized avatar

Osman Yüksel yuxel

View GitHub Profile
@sdogruyol
sdogruyol / http-server-benchmark.md
Last active December 27, 2015 00:09
fast-http-server (https://github.com/sdogruyol/fast-http-server) performance benchmark.

This is done with a demo bootstrap static site which includes js, css

wrk is used for benchmarking with

wrk -c 100 -d 20 http://localhost:3000

Fast

Numbers speak louder than words.

@yuxel
yuxel / labeledstatements.js
Created May 9, 2012 23:00
labeled statements
//normal loop
for (var i=0; i < 3; i++) {
for(var j = 0; j < 3; j++) {
console.log(i,j);
}
}
/* output for normal loop
0 0
0 1
0 2
@yuxel
yuxel / vertical-align.html
Created January 13, 2011 14:39
vertical align
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Sonsuzdongu.com</title>
</head>
<body>
<div style="position:relative; border:1px solid red; width:960px; height:600px; line-height:600px; text-align:center; ">
<span style="display:inline-block; vertical-align:middle;">
<div style="height:20px; width:200px; background:#b31616; line-height:20px;">