Skip to content

Instantly share code, notes, and snippets.

View mgd722's full-sized avatar

Mike Davlantes mgd722

View GitHub Profile
@mgd722
mgd722 / this-drove-me-slowly-insane-for-2-weeks.md
Last active June 26, 2024 06:22
Fix touchpad on Lenovo 100e running Ubuntu

Fix touchpad on Lenovo 100e running Ubuntu

So you bought a used Lenovo 100e with a stupid ELAN066C touchpad. It works in Windows just fine, other than being god-awful slow. You want to put Xubunutu on it to make it workable, except the touchpad stopped working. Ugh.

My brain is smooth, so this took me like 40+ hours to solve. I'm sure you would have solved it faster, but just in case you need help here are the steps I took to get it working. For reference, my exact computer is Lenovo 100e 2nd Gen (82GJ).


NOTE: secure boot must be disabled for this to work!

Keybase proof

I hereby claim:

  • I am mgd722 on github.
  • I am mgd722 (https://keybase.io/mgd722) on keybase.
  • I have a public key ASCC5sKIL-GwL2Q8dM8Bp7qJTq34Gv0c1kOVFF1QcWSG2wo

To claim this, I am signing this object:

@mgd722
mgd722 / PyDeletePointsMoreThan800MetersFromRivers.pyt
Last active May 16, 2023 00:56
ChronoCards Script & Tool Logging Examples
# -*- coding: utf-8 -*-
import arcpy
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "PyDeletePointsMoreThan800MetersFromRivers"
@mgd722
mgd722 / email-signature.html
Last active May 18, 2017 02:58
Signature html for jaxcookingstudio.com accounts
<html>
<head>
<meta http-equiv="Content-Type" content="text/html charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
@mgd722
mgd722 / test_geojson
Last active May 3, 2016 15:09
test geojson for caitlin. this is all the counties in the US at a reasonably detailed level.
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "GEO_ID": "0500000US01001", "STATE": "01", "COUNTY": "001", "NAME": "Autauga", "LSAD": "County", "CENSUSAREA": 594.436000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -86.496774, 32.344437 ], [ -86.717897, 32.402814 ], [ -86.814912, 32.340803 ], [ -86.890581, 32.502974 ], [ -86.917595, 32.664169 ], [ -86.713390, 32.661732 ], [ -86.714219, 32.705694 ], [ -86.413116, 32.707386 ], [ -86.411172, 32.409937 ], [ -86.496774, 32.344437 ] ] ] } }
,
{ "type": "Feature", "properties": { "GEO_ID": "0500000US01009", "STATE": "01", "COUNTY": "009", "NAME": "Blount", "LSAD": "County", "CENSUSAREA": 644.776000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -86.577799, 33.765316 ], [ -86.759144, 33.840617 ], [ -86.953664, 33.815297 ], [ -86.954305, 33.844862 ], [ -86.962960, 33.844865 ], [ -86.963358, 33.858221 ], [ -86.924387, 33.909222 ], [ -86.793914, 33.952059 ], [ -86.685365, 34.059140 ], [ -86.692061, 34.092654 ], [ -
@mgd722
mgd722 / LayerDefinition.js
Created October 8, 2015 17:21
Main JavaScript code for sliderQuery widget
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'dijit/form/Button',
'dijit/form/HorizontalSlider',
'dijit/form/TextBox',
'dojo/_base/lang',
'dojo/_base/array',
@mgd722
mgd722 / rest-server.py
Last active August 25, 2015 21:19 — forked from miguelgrinberg/rest-server.py
The code from my article on building RESTful web services with Python and the Flask microframework. See the article here: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask.ext.httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':