This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import io | |
import mapnik | |
from shapely.geometry import box, MultiPoint | |
class SimpleDatasource(mapnik.PythonDatasource): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns cascalog-repl.core | |
"An example of consuming an HBase tap from Cascalog. First, create and | |
populate the table: | |
$ hbase shell | |
> create 't1', 'f1' | |
> put 't1', 'TheRealMT', 'f1:user', 'Mark Twain' | |
> put 't1', 'TheRealMT', 'f1:email', '[email protected]' | |
> put 't1', 'TheRealMT', 'f1:pass', 'abc123' | |
> put 't1', 'GrandpaD', 'f1:user', 'Fyodor Dostoyevsky' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
############################################################################### | |
# $Id$ | |
# | |
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008 | |
# Global Map Tiles Classes | |
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326, | |
# generate a simple HTML viewers based on Google Maps and OpenLayers | |
# Author: Klokan Petr Pridal, klokan at klokan dot cz | |
# Web: http://www.klokan.cz/projects/gdal2tiles/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew ls | xargs brew rm | |
brew cleanup | |
brew ls --unbrewed | xargs -I {} rm -rf /usr/local/{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git --no-pager diff 1.5.2 1.7.0 src/leiningen/util/file.clj | |
diff --git a/src/leiningen/util/file.clj b/src/leiningen/util/file.clj | |
index 638cfe7..0a1f90d 100644 | |
--- a/src/leiningen/util/file.clj | |
+++ b/src/leiningen/util/file.clj | |
@@ -11,6 +11,7 @@ | |
"Delete file f. If it's a directory, recursively delete all its contents. | |
Raise an exception if any deletion fails unless silently is true." | |
[f & [silently]] | |
+ (System/gc) ; This sometimes helps release files for deletion on windows. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git --no-pager diff 1.5.2 1.7.0 src/leiningen/clean.clj | |
diff --git a/src/leiningen/clean.clj b/src/leiningen/clean.clj | |
index 85bffcc..73a86f6 100644 | |
--- a/src/leiningen/clean.clj | |
+++ b/src/leiningen/clean.clj | |
@@ -20,6 +20,5 @@ | |
Set :extra-files-to-clean in project.clj to delete other files. Dependency | |
jars are not deleted; run deps task to delete all jars and get fresh ones." | |
[project] | |
- (println "Cleaning up.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local: (detached) ~/repos/leiningen/ | |
Head: 5675ec3 Release 1.7.0. | |
Changes: | |
Modified src/leiningen/clean.clj | |
diff --git a/src/leiningen/clean.clj b/src/leiningen/clean.clj | |
index 73a86f6..85bffcc 100644 | |
--- a/src/leiningen/clean.clj | |
+++ b/src/leiningen/clean.clj | |
@@ -20,5 +20,6 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local: (detached) ~/repos/leiningen/ | |
Head: 5675ec3 Release 1.7.0. | |
Changes: | |
Modified src/leiningen/clean.clj | |
diff --git a/src/leiningen/clean.clj b/src/leiningen/clean.clj | |
index 73a86f6..98ca015 100644 | |
--- a/src/leiningen/clean.clj | |
+++ b/src/leiningen/clean.clj | |
@@ -9,10 +9,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; format.clj | |
(defn- format-related-filter ...) | |
(defn- format-related-parsing ...) | |
(defn read-raw | |
"utility function for reading common file type. source is a path" | |
[source] | |
(let [source (hfs-textline source)] | |
(<- [?field1 ?field2] |