Skip to content

Instantly share code, notes, and snippets.

@carlfranz
carlfranz / main.pl
Last active August 15, 2021 12:32
Script for importing a font into css
#!/usr/bin/perl
use 5.010;
use strict;
use warnings;
use Data::Dumper;
my $family = 'OpenSans';
my @entries = (
@carlfranz
carlfranz / java8-time.java
Created September 9, 2019 15:41
Java8 time features
package com.example;
import static java.time.temporal.TemporalAdjusters.lastDayOfMonth;
import static java.time.temporal.TemporalAdjusters.nextOrSame;
import java.time.DateTimeException;
import java.time.DayOfWeek;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
@carlfranz
carlfranz / git_config.sh
Created May 3, 2019 06:45
Useful GIT scripts
#!/bin/bash
git config --global alias.lol 'log --graph --decorate --pretty=oneline --abbrev-commit --all'
@carlfranz
carlfranz / main.pl
Last active August 18, 2019 16:07
Google Calendar ICAL format - Events generator tool script
#!/usr/bin/perl
# BEGIN:VCALENDAR
# VERSION:2.0
# PRODID:-//hacksw/handcal//NONSGML v1.0//EN
# BEGIN:VEVENT
# DTSTART:20190708T090000+0200
# DTEND:20190708T130000+0200
# SUMMARY:customerkik91
# END:VEVENT
@carlfranz
carlfranz / main.go
Created February 23, 2019 12:10
Golang JWT token verification with jose-jwt
package main
import (
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
@carlfranz
carlfranz / index.html
Last active December 14, 2018 20:19
ES6 modules simple example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app">