Skip to content

Instantly share code, notes, and snippets.

View schlomm's full-sized avatar

Dominik Schlarmann schlomm

View GitHub Profile
@schlomm
schlomm / README.md
Created February 27, 2019 10:49 — forked from larsenmtl/README.md
d3 mouseover multi-line chart

An interactive multi-line chart.

Note, I borrowed a bit of code from Duopixel's excellent code sample here.

Built with blockbuilder.org

@schlomm
schlomm / ExportToCsv.pyt
Created October 9, 2017 10:25 — forked from JeffJacobson/ExportToCsv.pyt
ArcGIS conversion: Table View to CSV
import arcpy
import arcpy.da as da
import arcgiscsv
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Export to CSV Toolbox"
self.alias = "csv"
postCreate: function(){
// Create a new constructor by mixing in the components
var CustomGrid = declare([ Grid, Keyboard, Selection, GridRegistry ]);
var columns = [
{
label : ' ',
field : 'deletelink',
@schlomm
schlomm / OverwriteFS.py
Created March 28, 2017 08:17 — forked from khibma/OverwriteFS.py
Python code to create a service definition from a map document (.mxd), modify the .SD file and overwrite an existing Hosted Feature Service on ArcGIS.com This workflow requires 2 files, the OverwriteFS.py and the settings.ini file. Download them both to the same directory. You will also need the 3rd party module, 'requests'. It can be downloaded…
# Import system modules
import urllib, urllib2, json
import sys, os
import requests
import arcpy
import ConfigParser
from xml.etree import ElementTree as ET
def urlopen(url, data=None):
@schlomm
schlomm / timestamp.js
Last active August 29, 2015 14:26 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@schlomm
schlomm / countriessample_poly.geojson
Created October 24, 2014 12:04
countries sample
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.