Skip to content

Instantly share code, notes, and snippets.

@jumper423
jumper423 / badoo.js
Last active March 18, 2017 10:30
badoo
document.yes = 0;
document.no = 0;
document.city = "Тула";
document.rating = 630;
// выполняем тело анонимной функции с интервалом в 100 милисекунд
setInterval(function(){
// какой указан город
girlCity = $('.js-location-label').text();
// Проверяем есть ли на странице город
@paulirish
paulirish / server-timing-demo.js
Last active January 14, 2024 13:22
Demo of server timing values. visualized in chrome devtools
// see for screenshot:
// https://twitter.com/paul_irish/status/829090506084749312
const http = require('http');
function requestHandler(request, response) {
const headers = {
'Server-Timing': `
sql-1;desc="MySQL lookup Server";dur=100,
sql-2;dur=900;desc="MySQL shard Server #1",
@obenjiro
obenjiro / ng2-speed-limits.md
Last active July 12, 2023 08:51
Angular 2 - Fast and Furious