Skip to content

Instantly share code, notes, and snippets.

View wboykinm's full-sized avatar

Bill Morris wboykinm

View GitHub Profile
@wboykinm
wboykinm / tmwincomp.md
Created January 20, 2012 17:21
Startup Comparisons for TileMill 0.9 on Windows 7

Startup Comparisons for TileMill 0.9 on Windows 7

1:03PM: Updates to reflect new package commits - Install-TileMill-0.8.0-522

Time for Restart
Program Time for Cold Start
@wboykinm
wboykinm / tmlog_013112
Created January 31, 2012 16:24
Tilemill Log
The "sys" module is now called "util". It should have a similar interface.
The "sys" module is now called "util". It should have a similar interface.
The "sys" module is now called "util". It should have a similar interface.
Note: Unknown option "updatesVersion" in config file.
Note: Unknown option "updatesTime" in config file.
Note: Unknown option "updates" in config file.
Started [Server Tile:20008].
Plugin [carto] loaded.
Plugin [editor] loaded.
Plugin [fonts] loaded.
@wboykinm
wboykinm / irc_13112
Created January 31, 2012 16:37
irc log 1/31/12
[11:30:25] <wboykinm> yhahn: sorry to pester you, but I see that Dane isn't awake yet.
[11:30:30] <yhahn> haha
[11:30:33] <yhahn> sup
[11:30:48] <wboykinm> yhahn: have you gotten any reports of tm for windows crashing without lodaing today?
[11:31:01] <yhahn> hm, no
[11:31:23] <wboykinm> yhahn: I'm pretty sure it's nothing systemic, but I've got a problem stemming from github integration. Here's the latest log: https://gist.github.com/1711412
[11:31:55] <wboykinm> I set up a parallel "project" folder set up with a git, called "project2"
[11:32:18] <wboykinm> I copied one project folder from there into "project" and now Tilemill crahses on start
[11:32:19] <yhahn> hmm
[11:32:38] <wboykinm> i reinstalled and deleted the folder, but it still crashes
@wboykinm
wboykinm / cartodb_sketch.html
Created April 2, 2012 17:46
CartoDB Sketch View
<!DOCTYPE html>
<html>
<head>
<title>CartoDB Sketch View</title>
<script type="text/javascript" src="../js/core.js"></script>
<script type="text/javascript" src="../js/settings.js"></script>
<script type="text/javascript" src="../js/mercator.js"></script>
<script type="text/javascript" src="../js/geometry.js"></script>
<script type="text/javascript" src="../js/model.js"></script>
@wboykinm
wboykinm / arc2rgb.py
Created April 24, 2012 17:50
Export ArcGIS Symbology
from vb2py.vbfunctions import *
def UVRtoRGB():
pRGB = RgbColor()
pMxDoc = ThisDocument
pGeoFtrLyr = pMxDoc.FocusMap.Layer(0)
pUVRend = pGeoFtrLyr.Renderer
VBFiles.openFile(1, OUTPUT_FILE, 'w')
VBFiles.writeText(1, 'Value,Red,Green,Blue', '\n')
for f in vbForRange(0, pUVRend.ValueCount - 1):
sVal = pUVRend.Value(f)
@wboykinm
wboykinm / arc2rgb_old
Created April 24, 2012 18:11
Deprecated ArcGIS symbology export
' ---- Adapted from Miles Hitchen at http://forums.esri.com/Thread.asp?c=93&f=1730&t=220177 ----
Public Sub UVRtoRGB()
' ---- Change this output location ----
Const OUTPUT_FILE = "C:\Miles\RGBValues.txt"
' -------------------------------------
Dim pMxDoc As IMxDocument
Dim pGeoFtrLyr As IGeoFeatureLayer
Dim pUVRend As IUniqueValueRenderer
Dim pFillSym As IFillSymbol
@wboykinm
wboykinm / vtsoils.mss
Created June 8, 2012 02:51
VT Soils Carto
Map {
background-color: #b8dee6;
}
#countries {
::outline {
line-color: #85c5d3;
line-width: 2;
line-join: round;
}
@wboykinm
wboykinm / tilemill.log
Created June 8, 2012 03:00
wboykinm's Tilemill log 060712
The "sys" module is now called "util". It should have a similar interface.
The "sys" module is now called "util". It should have a similar interface.
The "sys" module is now called "util". It should have a similar interface.
Note: Unknown option "updatesVersion" in config file.
Note: Unknown option "updatesTime" in config file.
Note: Unknown option "updates" in config file.
Started [Server Tile:20008].
Plugin [carto] loaded.
Plugin [editor] loaded.
Plugin [fonts] loaded.
@wboykinm
wboykinm / vtsoils.mml
Created June 12, 2012 19:40
VTSoils MML
{
"bounds": [
-73.6084,
42.6258,
-71.488,
45.1045
],
"center": [
-72.7405,
44.0007,
@wboykinm
wboykinm / vtsoils1.mss
Created June 12, 2012 19:41
VTSoils MSS
Map {
}
#vtsoils {
line-color: black;
[zoom>11] { line-width: 0.6; }
[zoom<=11] { line-width: 0; }
line-opacity: 0.7;
polygon-opacity: 0.6;
[PARENT='A'] { polygon-fill: rgb(0,50,1); }