Skip to content

Instantly share code, notes, and snippets.

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

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 19:07 (UTC +01:00)
View GitHub Profile
@lukas-h
lukas-h / license-badges.md
Last active December 25, 2024 18:51
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)

@lukas-h
lukas-h / webview.java
Last active May 9, 2020 09:01
starter template if you have to develop a javafx app
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.ScrollPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Main extends Application {
<!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 / footer.html
Created March 26, 2017 09:28
Footer for jekyll sites, that iterates all pages (here with css classes for materializecss)
@lukas-h
lukas-h / dateTranslate.rb
Created April 15, 2017 13:43
Jekyll Plugin to translate dates to german - Jekyll Plugin um Daten auf Deutsch zu übersetzen
module Jekyll
module DateTranslate
def dateTranslate(input)
puts 'hey'
return input
.gsub('January', 'Januar')
.gsub('February', 'Februar')
.gsub('March', 'März') .gsub('Mar', 'Mär')
.gsub('May', 'Mai')
.gsub('June', 'Juni')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukas-h
lukas-h / excerpt.html
Last active January 30, 2018 05:06
Jekyll excerpts for not only posts. For collections and pages: http://himsel.me/blog.html
<div class="row">
{% for page in site.pages %}
<div>
<span>{{ page.title }}</span>
{% assign excerpt = page.content | split: site.excerpt_separator %}
{{ excerpt[0] }}
</div>
{% endfor %}
</div>
@lukas-h
lukas-h / this.patch
Created May 14, 2017 09:11
Git Statistik
++485529 Additions
--288844 Deletions
@lukas-h
lukas-h / default.html
Created June 4, 2017 19:26
AMP default layout jekyll
---
layout: compress
---
<!doctype html>
<html ⚡ lang="en">
<head>
{% include head.html %}
</head>