Skip to content

Instantly share code, notes, and snippets.

View tomscholz's full-sized avatar
💭
I may be slow to respond, but I will respond!

Tom Scholz tomscholz

💭
I may be slow to respond, but I will respond!
View GitHub Profile

Software to Draw Bee Flight Paths I wrote the software tracks.py that identifies and draws the bee flight paths one weekend. It is a primitive and experimental command-line program that requires Python (version 2.7 or newer, but will need fixes for Python 3), the Python Image Library, and the Numpy Python module. It only operates on images, and cannot read video formats. To convert video to a sequence of images I use ffmpeg. All of these packages run on Mac, Windows and Linux.

Here is a command example:

  ffmpeg -i beevideo.mp4 image-%04d.png
  python tracks.py image-%04d.png --start 1 --end 300 --animate
  ffmpeg -i track-%04d.png beetracks.mp4

The first command turns the video into individual image frames, the second command draws bee flight lines, and the third command assembles the images with flight lines back into a video. The result beetracks.mp4 is a video with traced lines added for bee flight paths. An image file called tracks.png is also written that shows all the flight paths superpo

Keybase proof

I hereby claim:

  • I am tomscholz on github.
  • I am tomscholz (https://keybase.io/tomscholz) on keybase.
  • I have a public key whose fingerprint is 4FE2 F309 8ED8 6215 E492 E883 647C 1339 0577 2472

To claim this, I am signing this object:

MaterializeCSS

Materialize, a CSS Framework based on Material Design.

@tomscholz
tomscholz / CHANGELOG-0.99.0.md
Last active July 10, 2017 10:16
Full changelog for materialize 0.98.2 --> 0.99.0

Something big is coming

  • Renamed the.userView class to .user-view. We will completely remove .userView in the next version
  • Added timepicker & updated the layout of the datepicker component Dogfalo/materialize#4445
  • Added sidenav callbacks Dogfalo/materialize#4778
  • Added .browser-default classes for inputs Dogfalo/materialize#4802
  • Added a new variable $button-font-size. The default is 1rem Dogfalo/materialize#4494
  • Added the fields property inside the package.json. Dogfalo/materialize#4774 This should also fix problems with having more than one jQuery installation
  • Fixed a bug where the carousel handled also up and down swipes. From now on only swipe left and swipe right events are triggered Dogfalo/materialize#4702
  • Fixed the dynamic textarea resize bug
  • Fixed a bug where you could not have closeOnClick enabled in combination
@tomscholz
tomscholz / package.js
Last active June 13, 2017 16:43
Materialize meteor package.js
// package metadata file for Meteor.js
Package.describe({
name: 'materialize:materialize', // http://atmospherejs.com/materialize/materialize
summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
version: '0.98.2',
git: 'https://github.com/Dogfalo/materialize.git'
});
Package.onUse(function(api) {
@charset "UTF-8";
// Mixins
// @import "components/prefixer";
@import "components/mixins";
@import "components/color";
// Variables;
@import "components/variables";
@tomscholz
tomscholz / remove-spezefic-property.php
Last active August 13, 2016 00:15
Remove specific properties easily
<?php
$raw = json_decode(file_get_contents('map.geojson'));
$output = new stdclass;
$output->type = "FeatureCollection";
$output->features = array();
foreach($raw->features as $item) {