Skip to content

Instantly share code, notes, and snippets.

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@webghostx
webghostx / Arduino-DHT11-Test.ino
Last active November 16, 2016 17:02
Beispiel wie die Arduino DHTLib eingesetzt wird
/*
DHT11 Test-Sketch mit der DHTLib
Ein kleines Beispiel zum Umgang mit dem DHT11 Temperatur- und Luftfeuchtigkeits-Sensor
@post http://usysto.net/12-volt-frostwaechter-mit-arduino_390
*/
#include <dht.h> // Bibliothek DHTLib @version 0.1.14 einbinden
// @url https://github.com/webghostx/Arduino-DHTLib
// Diese Version funktioniert problemlos mit dem DHT11 und einem Nano
// Aktuelles Original https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib
@webghostx
webghostx / Frostwaechter.ino
Last active December 2, 2016 16:30
12 Volt Frostwächter mit Arduino, DHT11, einem Heizlüfter und einem Relais
/*
12 Volt Frostwächter mit Arduino Nano
http://usysto.net/12-volt-frostwaechter-mit-arduino_390
*/
#include <dht.h> // DHTLib Version 0.1.14 https://github.com/webghostx/Arduino-DHTLib
dht DHT;
const int minTemperature = 5; // (°C) unterhalb dieser Temperatur springt die Heizung an
const int intvalTime = 9 * 60 * 1000; // (ms) Intervalzeit
@webghostx
webghostx / Arduino-Stepper-Test.ino
Last active November 26, 2016 09:08
Test-Script Schrittmotor mit Arduino
/*
Test-Script Schrittmotor mit Arduino
Benötigt wird ein Motortreiber wie zB. der DRV8825 oder A4988.
Verdrahtung gemäss Motortreiber-Datenblatt. Elko am Eingang
des Motor-Stroms nicht vergessen!
Anluss des Steppers am Treiber gemäss Datenblatt vom Stepper.
Poti am Treiber gemäss Datenblatt vom Treiber einstellen.
http://usysto.net
@webghostx
webghostx / Apache-Default-Page-ersetzten.html
Last active December 18, 2016 18:05
Vorlage um die Apache Default Seite zu ändern
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Neue Produkte</title>
<meta name="description" content="Neue Produkte">
<meta name="author" content="exao.net">
<style>
</style>
<!--[if lt IE 9]>
@webghostx
webghostx / log.conf.json
Last active January 28, 2017 16:11 — forked from gistsobo/log.conf
Python: json logger config
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
},
"brief": {
"format": "%(levelname)-9s: %(name)-11s: %(message)s"
},
@webghostx
webghostx / logger-json-config.py
Created January 28, 2017 16:19
Python Logger mit JSON Konfiguration
import logging
import logging.config
log = logging.getLogger(__name__)
logging.config.dictConfig({
"version": 1,
"disable_existing_loggers": "false",
"formatters": {
"simple": {
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
@webghostx
webghostx / json-config.py
Last active March 4, 2017 17:04
Formatierte JSON Konfiguration in Python
from collections import OrderedDict # required for maintaining order data
import json
class AppConfig:
'''
sample config class
load and save readable
json configuration files
http://usysto.net/formatierte-json-konfiguration-python_846
@webghostx
webghostx / day-night-detection.py
Last active October 2, 2021 18:02
simple Day/Night detection in Python
#!/usr/bin/python
# -- coding: utf-8 --
'''
simple Day/Night detection in Python
require pyephem https://pypi.python.org/pypi/pyephem/
'''
import ephem
import time
@webghostx
webghostx / wp-content-filter-anchor-heading.php
Last active July 22, 2020 19:22
In Überschriften automatisch id-Attribut setzten und Anker-Link einfügen
<?php
/**
* Wordpress Content Filter
* Automatisch html-Anker Elemente in Überschriften setzen
*
* Im ersten Abschnitt (edit bis /edit) können Einstellungen vorgenommen werden.
*
* @author usysto https://usysto.net/wordpress-content-filter-anker-links-in-ueberschriften-ohne-plugin
* @copyright free
*/