This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyobjus import autoclass, protocol | |
from pyobjus.dylib_manager import load_framework, INCLUDE | |
(CBCentralManagerStateUnknown, | |
CBCentralManagerStateResetting, | |
CBCentralManagerStateUnsupported, | |
CBCentralManagerStateUnauthorized, | |
CBCentralManagerStatePoweredOff, | |
CBCentralManagerStatePoweredOn) = range(6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
do_multisync() { | |
remote_dir="private/files" | |
local_dir="/root/i_drive/files" | |
# remote host | |
host="ftp.myremotehost.com" | |
# username / password | |
user="larry" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function requestMarkers() { | |
// no loading markers when zoomed way out | |
if (map.getZoom() < 11) { return }; | |
// start dropping markers before the browser bogs down | |
if (markers.length > 50) { | |
dropSuperfluousMarkers(); | |
} | |
$.ajax({ | |
// [snip typical ajax data request] | |
success: populateMarkers, |