Skip to content

Instantly share code, notes, and snippets.

View vitale232's full-sized avatar

Andrew Vitale vitale232

  • New York State, USA
View GitHub Profile
@mikepianka
mikepianka / cursor_oops.py
Last active October 2, 2020 10:03
OOP helper class for arcpy cursors
# when arcpy moves to python 3.7, dataclasses will be the better alternative
class Feature:
"""A feature object created from an attribute table row."""
def __init__(self, field_names, row_values):
self.__schema = dict(zip(field_names, [type(v) for v in row_values]))
d = dict(zip(field_names, row_values))
@kavinyao
kavinyao / readme.md
Created July 19, 2020 01:30
Enable Ligature in wsltty

Here we use wsltty as example. The same options can be applied to mintty too.

  1. Download wsltty
  2. Open properties of WSL Terminal shortcut, add -o LigaturesSupport=1 -o Ligatures=2 options. It should looks like below
C:\Users\<username>\AppData\Local\wsltty\bin\mintty.exe -o LigaturesSupport=1 -o Ligatures=2 --WSL= --configdir="C:\Users\<username>\AppData\Roaming\wsltty" -~  -
@ivanbatic
ivanbatic / typescript-async-await-demo.ts
Last active January 12, 2021 21:55
Typescript async/await demo
"use strict";
class Cheese {
private state = "hard";
public async melt() {
console.log("Melting...");
return new Promise((resolve) => {
setTimeout(() => {
this.state = "melted";
@dwyerk
dwyerk / concave_hulls.ipynb
Created April 12, 2014 23:20
concave hulls using shapely and scipy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.