Skip to content

Instantly share code, notes, and snippets.

View muminoff's full-sized avatar
🚀
Building products

Sardor Muminov muminoff

🚀
Building products
  • Seoul, Korea
  • 13:47 (UTC +09:00)
View GitHub Profile
import tensorflow as tf
import skimage.transform
from skimage.io import imsave, imread
import os
from os import listdir, path
from os.path import isfile, join
def get_directory(folder):
foundfile = []
import tensorflow as tf
import skimage.transform
from skimage.io import imsave, imread
def load_image(path):
img = imread(path)
# crop image from center
short_edge = min(img.shape[:2])
yy = int((img.shape[0] - short_edge) / 2)
xx = int((img.shape[1] - short_edge) / 2)

API server (api.drivers.uz)

URL: api.drivers.uz

Protocol: HTTPS

Port: 443 (default)

SSL: enabled

@muminoff
muminoff / application.js
Created February 2, 2016 08:17 — forked from dshaw/application.js
socket.io application and haproxy configuration
var express = require('express');
var redis = require('redis');
const serverType = process.argv[2];
const serverHost = process.argv[3];
const serverPort = parseInt(process.argv[4]);
const redisPort = 6379;
const redisHost = '127.0.0.1';
http://www.depesz.com/2011/12/02/the-secret-ingredient-in-the-webscale-sauce/
http://www.craigkerstiens.com/2012/11/30/sharding-your-database/
https://github.com/markokr/pghashlib
http://www.niwi.be/2013/03/06/table-partitioning-with-postgresql/
https://blog.engineyard.com/2013/scaling-postgresql-performance-table-partitioning
http://instagram-engineering.tumblr.com/post/10853187575/sharding-ids-at-instagram
http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram
http://media.postgresql.org/sfpug/instagram_sfpug.pdf
  1. General Background and Overview
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pip install networkx distance pattern
In Flipboard's article[1], they kindly divulge their interpretation
of the summarization technique called LexRank[2].
<html>
<head>
<title>D3 Axis Example</title>
<script src="http://d3js.org/d3.v2.js"></script>
</head>
<body>
<button id="rescale" onclick="rescale();">Rescale</button>
<script>
var width = 700,