Skip to content

Instantly share code, notes, and snippets.

View mark-baumann's full-sized avatar
🚀

Mark Baumann mark-baumann

🚀
View GitHub Profile
@driscollis
driscollis / gist:a42aecb379742d3cd150
Created June 13, 2014 13:36
wxPython ScrolledPanel Example
import wx
import wx.lib.scrolledpanel as scrolled
########################################################################
class MyForm(wx.Frame):
#----------------------------------------------------------------------
def __init__(self):
wx.Frame.__init__(self, None, wx.ID_ANY, "Tutorial", size=(200,500))
@statickidz
statickidz / nearby-coordinates.sql
Last active January 31, 2024 20:31
Ordering with SQL by nearest latitude & longitude coordinates (MySQL & SQLite)
---
METHOD 1
This should roughly sort the items on distance in MySQL, and should work in SQLite.
If you need to sort them preciser, you could try using the Pythagorean theorem (a^2 + b^2 = c^2) to get the exact distance.
---
SELECT *
FROM table
ORDER BY ((lat-$user_lat)*(lat-$user_lat)) + ((lng - $user_lng)*(lng - $user_lng)) ASC
@yangxuan8282
yangxuan8282 / emoji-info.sh
Last active October 14, 2023 07:26
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence
@sarthaksavvy
sarthaksavvy / # Follow Unfollow Javascript Script
Last active September 27, 2023 07:29
Automate Unfollow/Follow
Check files inside this gist
@FrenchBen
FrenchBen / adb-firetv-cmd.sh
Created July 15, 2021 01:02
List of commands available for ADB against FireTV smart TV
# Connect to TV
adb connect <TV_IP>
# verify devices
adb devices
# list installed packages
adb shell pm list packages -f -3
# list all packages
adb shell pm list packages -f