Skip to content

Instantly share code, notes, and snippets.

View awunnenb's full-sized avatar

Andreas Wunnenberg awunnenb

View GitHub Profile
# Alacritty Sample Config
# https://youtu.be/1aw8IDH826Y
colors:
primary:
background: "#1e2127"
foreground: "#D8DEE9"
window_opacity: 0.95
@awunnenb
awunnenb / i3 config
Created November 3, 2021 19:03 — forked from Dobbie03/i3 config
set_from_resource $color15_i3wmthemer color15
set_from_resource $color14_i3wmthemer color14
set_from_resource $color13_i3wmthemer color13
set_from_resource $color12_i3wmthemer color12
set_from_resource $color11_i3wmthemer color11
set_from_resource $color10_i3wmthemer color10
set_from_resource $color09_i3wmthemer color9
set_from_resource $color08_i3wmthemer color8
set_from_resource $color07_i3wmthemer color7
@awunnenb
awunnenb / index.html
Last active March 10, 2021 10:52
markdown to html converter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css" />
<title>Markdown Converter</title>
<style>
@awunnenb
awunnenb / Responsive Navigation
Last active October 23, 2020 17:36
Responsive Navigation
# Responsive Navigation Menu
@awunnenb
awunnenb / ContentView.swift
Last active October 19, 2023 21:24
SwiftUI WKWebView und WKNavigationDelegate
// YouTube Video: https://youtu.be/o52XYvwTQU0
import SwiftUI
import WebKit
struct ContentView: View {
let webView = WebView(request: URLRequest(url: URL(string: "https://www.google.com")!))
var body: some View {
VStack {
import SwiftUI
import WebKit
struct ContentView: View {
let webView = WebView(request: URLRequest(url: URL(string: "https://www.google.com")!))
var body: some View {
VStack {
webView
}
@awunnenb
awunnenb / ContentView.swift
Last active November 26, 2023 16:16
SwiftUI WKWebView and Back- Forward Buttons
// Youtube Video: https://youtu.be/SBvrvJ93gh4
import SwiftUI
import WebKit
struct ContentView: View {
let webView = WebView(request: URLRequest(url: URL(string: "https://www.google.com")!))
var body: some View {
VStack {
@awunnenb
awunnenb / onpubcom_array_date_sort.js
Created June 25, 2018 14:20 — forked from onpubcom/onpubcom_array_date_sort.js
How to Sort an Array of Dates with JavaScript
<script type="text/javascript">
// First let's create an array of JavaScript Date
// objects.
// More info about the Date class:
// http://w3schools.com/js/js_obj_date.asp
var dates = [
new Date(2010, 4, 10, 10, 07, 16),
new Date(2010, 4, 8, 9, 16, 09),
new Date(2010, 3, 30, 0, 15, 49),