Skip to content

Instantly share code, notes, and snippets.

View group_photos_by_date_and_distance.py
import datetime
import exifread
import glob
import sys
import os
import shutil
import fractions
import pyexiv2
from geopy.distance import vincenty
@maxim75
maxim75 / README.md
Created Aug 6, 2015
HTML5 start template
@maxim75
maxim75 / gist:2785815
Created May 25, 2012
OpenLayers.mobile.js
View gist:2785815
/*
OpenLayers.js -- OpenLayers Map Viewer Library
Copyright (c) 2006-2012 by OpenLayers Contributors
Published under the 2-clause BSD license.
See http://openlayers.org/dev/license.txt for the full text of the license, and http://openlayers.org/dev/authors.txt for full list of contributors.
Includes compressed code under the following licenses:
@maxim75
maxim75 / gist:1224425
Created Sep 17, 2011
Sphinx search startup script for Ubuntu
View gist:1224425
#!/bin/bash
#
# Init file for searchd
#
# chkconfig: 2345 55 25
#
# description: searchd
#
# USE "chkconfig --add searchd" to configure Sphinx searchd service
#
@maxim75
maxim75 / gist:1221013
Created Sep 16, 2011
using deferreds in jQuery
View gist:1221013
function deferredTest(num, func)
{
var dfd = new $.Deferred();
console.log("deferredTest");
setTimeout(function() {
if(func(num))
{
console.log("resolve");
dfd.resolve( num );
}
@maxim75
maxim75 / init-deb.sh
Created Jul 9, 2011
Start script for nginx in ubuntu
View init-deb.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
@maxim75
maxim75 / gist:1069068
Created Jul 7, 2011
Displaying GeoJSON data on Google Maps
View gist:1069068
<!DOCTYPE html>
<html>
<head>
<style>
#map_canvas {
width: 300px;
height: 300px;
}
</style>
@maxim75
maxim75 / gist:1064422
Created Jul 5, 2011
Bulk downloader for QR codes using Google Charts API
View gist:1064422
using System.Diagnostics;
using System.IO;
using System.Web;
namespace Qr
{
class Program
{
static void Main(string[] args)
{