Skip to content

Instantly share code, notes, and snippets.

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

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 05:20 (UTC +02:00)
View GitHub Profile
@lukas-h
lukas-h / README.md
Last active April 12, 2024 09:37
Discord Motivational Gong Bot (on pull request merge)
  1. Put the gong-bot.yml in the folder .github/workflows in your repository
  2. Add a new webhook in the Discord Server Settings > Integrations > Webhooks
  3. Copy the webhook url
  4. Add the secret DISCORD_WEBHOOK in your GitHub repository Actions secrets

This is the gong gif:

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

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>
@lukas-h
lukas-h / static-site-hosting.md
Last active January 30, 2021 12:51
Static Site Showdown
Name Build Minutes Concurrent Builds Outbound Transfer Source Provider Number of Sites Next pricing step/Month Website
CloudFlare Pages 500 1 Unlimited Github Unlimited 20$, 5 concurrent builds, 5K Build minutes https://pages.cloudflare.com
Vercel
Github Pages
Gitlab
Bitbucket
Digitalocean
Netlify
Render
@lukas-h
lukas-h / get.sh
Created August 11, 2020 09:27
Scrape website recursively
wget \
--recursive \
--no-clobber \
--page-requisites \
--convert-links \
--restrict-file-names=windows \
--domains $1 \
--no-parent \
https://$1/
@lukas-h
lukas-h / pub-dev-copy.html
Last active August 2, 2020 22:39
pub.dev dependency copy shortcut
<div class="" style="
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: 1px solid #c8c8ca;
">
<h3 class="title">Install latest version:</h3>
<div style="
display: flex;
align-content: center;
">