Skip to content

Instantly share code, notes, and snippets.

@msmuenchen
msmuenchen / README.md
Last active April 23, 2024 23:34
Flying a drone in Germany

This article intends to provide a quick refresher and reference guide for aspiring drone pilots in German territory, particularly those from outside the EU.

Disclaimer: The author is not a law professional and assumes no liability, but strives to keep this guide up-to-date and factually correct. Please check the laws yourself before conducting a flight. No commission, referrals or similar awards have been provided to the author. The guide only applies to actual EU member states and Germany specifically, unless noted otherwise. The author has no knowledge about the edge cases Switzerland, Norway, Iceland, Liechtenstein and the UK - they may or may not have adopted the EU regulations. Please file a comment if you have corrections, questions, new edge cases or links to state-specific information.

Basic EU-wide rules

German drone law follows the basic EU harmonized rules:

Drone classes

  • Drones are classified by weight and capabilities by the manufacturer:
  • C0 drones weigh below 250g (e.g. the DJ
@msmuenchen
msmuenchen / 00_MAIN.md
Last active April 23, 2024 23:32
Patching around the Samsung Wearable ecosystem for fun and (no) profit

tl;dr: Samsung is a bunch of crap company that doesn't inform their customers about serious limitations on their Wearables lineup. Great hardware, dog poo software.

So, what's this about: Samsung omits a bunch of crucial information for consumers anywhere on the Galaxy Watch product pages - at least on those for the Galaxy Watch 4, Galaxy Watch 5 or Galaxy Watch 6.

They omit on the product pages, the pages that should inform a consumer about requirements and limitations, that:

  1. unless you're rooted, the companion phone actually must be a phone, tablets and even phablets like the Galaxy Tab Active 3 are not supported. (If you're rooted, you can patch that away. Just follow along for the guide)
  2. only certain wearables
@reyoung
reyoung / KVCache.h
Created December 23, 2015 06:43
A C++ 11 key-value object instance cache.
#include <memory>
#include <unordered_map>
#include <functional>
#include <mutex>
#include <glog/logging.h>
/**
* Key-Value Cache Helper.
*
* It store a object instance global. User can invoke get method by key and a
@bmaupin
bmaupin / free-database-hosting.md
Last active April 23, 2024 23:31
Free database hosting
@mmiszy
mmiszy / Button.tsx
Created February 12, 2024 10:22
`asChild` pattern in React
import { clsx } from "clsx";
import { type ButtonHTMLAttributes } from "react";
import { Slot } from "./Slot";
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
asChild?: boolean;
children: React.ReactNode;
}
export const Button = ({ asChild = false, ...props }: ButtonProps) => {
@nicolasdao
nicolasdao / open_source_licenses.md
Last active April 23, 2024 23:27
What you need to know to choose an open source license.
@alexf101
alexf101 / generate_dependabot_config.rb
Last active April 23, 2024 23:27
Translates a Dependabot config with glob support to a real Dependabot config
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'httparty'
gem 'fast_ignore'
end
require 'httparty'
@harperreed
harperreed / peter-thiels-cs183-startup-class-01-notes-essay.md
Created July 29, 2012 21:20
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

@tfhartmann
tfhartmann / sqs.py
Created February 12, 2014 14:02
Example script on how to poll a AWS SQS Queue and pull off messages
#!//opt/boxen/homebrew/bin/python
import boto.sqs
from boto.sqs.message import RawMessage
import json
import time
import requests
REGION = 'us-west-2'
@adrianhajdin
adrianhajdin / index.css
Created November 11, 2021 13:19
Build and Deploy a Fully Responsive Website with Modern UI/UX in React JS
.gpt3__whatgpt3 {
display: flex;
flex-direction: column;
padding: 2rem;
background: var(--color-footer);
/* ff 3.6+ */
background:-moz-radial-gradient(circle at 30% -100%, #042c54 25%, rgba(4, 44, 84, 1) 85%, rgba(27, 120, 222, 1) 100%);