This file contains hidden or 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
// Get a list of all Airdata flight download URLs in KML, GPX, CSV, original format. | |
// Go to https://app.airdata.com/flight/last and paste this into the console | |
let urlList = $("#item_list_dt") | |
.DataTable() | |
.tables() | |
.context[0].aoData.map(a => { | |
return a._aData.h; | |
}) | |
.slice(1, -1) |
This file contains hidden or 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
(* | |
Even though a [native solution][1] exists, it still suffers from a big flaw: it right-clicks the place you cursor is, not what you’re selecting. This addresses that limitation. | |
You can install this as a [Finder Service, and later asign it a keyboard shortcut][2]. | |
[1]: http://stackoverflow.com/questions/9171613/right-click-shortcut-for-mac-lion-os | |
[2]: http://www.macosxautomation.com/services/learn/tut01/index.html | |
*) |
This file contains hidden or 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
const gulp = require("gulp"); | |
const gutil = require("gulp-util"); | |
const inject = require("gulp-inject"); | |
const htmlMin = require("gulp-htmlmin"); | |
const cssMinifyOptions = true; | |
const jsMinifyOptions = { | |
mangle: { | |
toplevel: true | |
}, |
This file contains hidden or 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
#!/usr/bin/env python | |
import sys | |
import os | |
import subprocess | |
# Script taken from doing the needed operation | |
# (Filters > Remeshing, Simplification and Reconstruction > | |
# Quadric Edge Collapse Decimation, with parameters: | |
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%) |
This file contains hidden or 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/sh | |
echo | |
echo "Connect Quest and hit <return> to continue..." | |
read Z | |
echo | |
QUEST_IP=`adb shell ip route | grep 'proto kernel' | awk '{print \$9}'` | |
adb tcpip 5555 |
This file contains hidden or 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
Matrice 600 Pro: | |
Fw DJI M600P - v.1.00.01.67 (2019.02) | |
Fw DJI LighBridge (Air System) - 1.1.60 | |
Remote Controller: | |
DJI GO app - 3.1.50 | |
Fw Lightbridge2 - 1.1.60 | |
Remote Controller - 1.2.10 |
This file contains hidden or 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
# Remove invisible dotfiles from a directory or USB drive | |
# Usage: | |
# cd /Volumes/MY_USB | |
# clean_usb.sh | |
dot_clean $(pwd) | |
rm -rf .fseventsd | |
rm -rf .TemporaryItems |
This file contains hidden or 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
class Liblas < Formula | |
desc "C/C++ library for reading and writing the LAS LiDAR format" | |
homepage "https://liblas.org/" | |
url "https://download.osgeo.org/liblas/libLAS-1.8.1.tar.bz2" | |
sha256 "9adb4a98c63b461ed2bc82e214ae522cbd809cff578f28511122efe6c7ea4e76" | |
revision 1 | |
head "https://github.com/libLAS/libLAS.git" | |
bottle do | |
rebuild 1 |
This file contains hidden or 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
ffmpeg -framerate 30 -pattern_type glob -i '*.jpeg' -c:v libx264 -pix_fmt yuv420p output.mp4 |
This file contains hidden or 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
uint8_t breathBrightness = (exp(sin(millis() / (float)breathRate * PI)) - 0.36787944) * 108.0; | |
uint8_t brightness = constrain(map(breathBrightness, 0, 250, 80, 255), 0, 255); | |
leds[0] = CHSV(hue, 255, brightness); |