Skip to content

Instantly share code, notes, and snippets.

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

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 04:01 (UTC +02:00)
View GitHub Profile
@kasperpeulen
kasperpeulen / README.md
Last active March 14, 2025 13:39
How to pretty-print JSON using Dart.
@gokulkrishh
gokulkrishh / media-query.css
Last active April 22, 2025 04:29
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@kirel
kirel / Einwohner Wikipedia.csv
Last active February 13, 2018 13:24
Zugezogene
Rang Name 1970 1980 1990 2000 2010 2014 Bundesland
1. Berlin 3.208.719 3.048.759 3.433.695 3.382.169 3.460.725 3.469.849 Berlin
2. Hamburg 1.793.640 1.645.095 1.652.363 1.715.392 1.786.448 1.762.791 Hamburg
3. München 1.311.978 1.298.941 1.229.026 1.210.223 1.353.186 1.429.584 Bayern
4. Köln 849.451 976.694 953.551 962.884 1.007.119 1.046.680 Nordrhein-Westfalen
5. Frankfurt am Main 666.179 629.375 644.865 646.550 679.664 717.624 Hessen
6. Stuttgart 634.202 580.648 579.988 583.874 606.588 612.441 Baden-Württemberg
7. Düsseldorf 660.963 590.479 575.794 569.364 588.735 604.527 Nordrhein-Westfalen
8. Dortmund 640.642 608.297 599.055 588.994 580.444 580.511 Nordrhein-Westfalen
9. Essen 696.419 647.643 626.973 595.243 574.635 573.784 Nordrhein-Westfalen
@harmoniemand
harmoniemand / PowerShell-Snippet.ps1
Last active March 12, 2018 14:33
Powershell count lines of code
# Count Lines
(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch).Count
# Search String
$search = "focusSearchInputfield";
Get-ChildItem -Recurse | Where { ! $_.PSIsContainer } | Select-String $search | select LineNumber, Path, Filename |Format-List
(dir -include * -recurse | select-string "_recurse")
# Count all Files
@CliffordAnderson
CliffordAnderson / stolpersteine.geojson
Last active May 1, 2017 16:35
Stolpersteine in Berlin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rmsubekti
rmsubekti / .travis.yml
Last active October 8, 2017 00:39
Automatic deploy Jekyll Site to firebase hosting
language: node_js
node_js: '4.0'
before_install:
- rvm install 2.1
- rvm use 2.1
- . $HOME/.nvm/nvm.sh && nvm install 6.1 && nvm use 6.1
- gem install bundler
- bundle check || bundle install
@helmasaur
helmasaur / license-badges.md
Last active March 1, 2022 16:49 — forked from lukas-h/license-badges.md
Badges de licence pour vos projet

Badges de licence en Markdown

Collection de badges de licence pour le fichier README de vos projets. Copiez-collez facilement le code dessous les badges dans vos fichier au format Markdown.

Notes

  • Les badges sont réalisé avec Shields.io.
  • Ces badges ne remplacent pas les informations concernant vos projets. Il s'agit seulement d'images pour le fichier README afin que les utilisateurs voient en un coup d'œil la licence choisie.

Vous souhaitez qu'une licence soit ajoutée ?

Commentez ce gist ou contactez le créateur du gist original via un commentaire ou via courriel ([email protected])

@zbjornson
zbjornson / dns.js
Last active January 12, 2019 12:15
const name = "<some domain>";
const AWS = require("aws-sdk");
const route53 = new AWS.Route53();
const DNS = require("@google-cloud/dns");
const dns = new DNS({projectId: "<your project id>"});
const dnsZone = dns.zone("<zone name>");
const resolvers = [ // See note below -- set to the NS for your zone
"<dns server 1>",
"<dns server 2>"//, ...
@laurenzlong
laurenzlong / index.js
Last active October 4, 2021 04:55
Firebase Cloud Messaging + Cloud Functions
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.sendLeaderboardMesssage = functions
.database
.ref('/leaderboard/{position}')
.onUpdate((change) => {
const oldPlayer = change.before.val();
@sma
sma / example.dart
Last active July 12, 2023 03:00
A flutter example demonstrating a custom painter drawing selectable rects
// run in DartPad: <https://dartpad.dev/c6a9111d58c3deb83711106cec6152ee>
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(home: RectsExample()));
}
class RectsExample extends StatefulWidget {
@override