Skip to content

Instantly share code, notes, and snippets.

View tylercubell's full-sized avatar

Tyler tylercubell

View GitHub Profile
@rdaly1490
rdaly1490 / LeafletCustomControl.js
Created February 9, 2016 21:09
Custom control class for Leaflet. Helps avoid issue where double clicking on a control button causes the map to zoom
class customControl extends L.Control {
constructor(options) {
super(options);
this.options = {
position: 'topright',
};
L.Util.setOptions(this, options);
}
onAdd() {
const container = L.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-custom');
@claymcleod
claymcleod / pycurses.py
Last active October 13, 2024 16:45
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()