Skip to content

Instantly share code, notes, and snippets.

View lukas-h's full-sized avatar
🎯
Focusing

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 15:39 (UTC +01:00)
View GitHub Profile
@lukas-h
lukas-h / license-badges.md
Last active March 28, 2024 10:06
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

ALT TEXT

@lukas-h
lukas-h / formatRfc822.dart
Last active September 20, 2023 03:21
Dart DateTime DateFormat to RFC-822 String
import 'package:intl/intl.dart';
import 'package:test/test.dart';
formatRfc822(DateTime d) {
var template = "EEE, dd MMM yyyy HH:mm:ss";
var out = DateFormat(template).format(d);
if (d.isUtc) {
out += ' GMT';
} else {
var offset = d.toLocal().timeZoneOffset.inHours * 100;
@lukas-h
lukas-h / license-badges.md
Last active January 19, 2023 14:18
Lizenz-Buttons für dein Projekt

Markdown Lizenz-Buttons

Sammlung von Lizenz-Schildern (Badges) für die README-Datei deines Projekts. Diese Liste enthält die meist verbreiteten Open Source und Open Data Lizenzen. Kopieren und fügen Sie den Code unter den Badges einfach in Ihre Markdown-Dateien ein.

Notes

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CAT API</title>
<style>img{max-width: 100%;}</style>
</head>
<body>
<img src="http://thecatapi.com/api/images/get?format=src&type=gif&api_key=KEY"><br>
<button onclick="location.reload();">reload</button>
@lukas-h
lukas-h / firebase.json
Created December 5, 2019 01:57
my firebase hosting config file
{
"hosting": {
"public": "_site",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [{
"source": "**",
Future<void> main() async {
// List/Iterable:
var array = [1,2,3,4];
array.forEach(print);
for(var item in array) {
print(item);
}

What we've learnt so far about React

JSX

Javascript XML: It's a Javascript syntax extension and is compiled to Javascript with React Elements using Babel.

examples:

  const element = <h1>Hello, World!</h1>