Skip to content

Instantly share code, notes, and snippets.

{
"source": {
"http": {
"url": "https://images.example.com/your-small-image.jpg"
}
},
"operations": [
{
"op": "nn/jpegar", "force": true
# create DB for extraction of OSM info
docker run -d --name osm-geodb -e POSTGRES_USER=geodb mdillon/postgis:9.6
create extension hstore;
alter system set max_wal_size='4GB';
alter system set shared_buffers='2GB';
alter system set wal_buffers='64MB;'

# import OSM data into postgres
docker run --rm --link osm-geodb:geodb -v /home/idmcore/stuff:/stuff my-osm2pgsql osm2pgsql -d geodb -H geodb -U geodb -p osm -k -l -s -c /stuff/netherlands-latest.osm.bz2
lazy val route = {
encodeResponse(Gzip) {
pathSingleSlash {
get {
redirect("/doc")
}
} ~
pathPrefix("api") {
jsonpWithParameter("callback") {
path("top-articles") {
njaskfdjkafs
(ecb-layout-define "right-my" right
"This function creates the following layout:
-------------------------------------------------------
| | |
| | |
| | |
| | |
| | |
| | |
@vlprans
vlprans / TargetSum.hs
Created June 27, 2012 16:42
Sum of two
{-# LANGUAGE OverloadedStrings #-}
import System.IO
import System.Environment
import qualified Data.ByteString.Char8 as B
import qualified Data.IntSet as S
import Data.List
import Data.Maybe (fromJust)