Skip to content

Instantly share code, notes, and snippets.

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

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 08:39 (UTC +02:00)
View GitHub Profile
@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>
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 / 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')
@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)
<!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 / 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 {
@lukas-h
lukas-h / license-badges.md
Last active August 30, 2025 04:10
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)