Skip to content

Instantly share code, notes, and snippets.

View tillsanders's full-sized avatar
💪
Working on something better.

Till Sanders tillsanders

💪
Working on something better.
View GitHub Profile
@tillsanders
tillsanders / FrameYourPhotos.js
Last active August 20, 2023 17:14
Scriptable: FrameYourPhotos.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: magic; share-sheet-inputs: image;
/**
* @name FrameYourPhotos
* @description Make artsy posts from your photos for social media.
* @author Till Sanders <mail@till-sanders.de>
* @version 1.0.0 (20.08.2023)
*/
@tillsanders
tillsanders / README.md
Created June 30, 2021 10:18
Base64 Encode/Decode Plugin for Nuxt.js + TypeScript

Base64 Encode/Decode Plugin for Nuxt.js + TypeScript

I was looking for an easy way to do Base64 encoding/decoding in Nuxt.js while using SSR (server-side rendering). It's not really a big deal, but I didn't find a quick solution. So here is a tiny plugin to help with that. Just drop it into your /plugins/ directory and reference it in the nuxt.config.ts:

  plugins: [
    { src: '~/plugins/base64.ts' },
  ]
@tillsanders
tillsanders / cloudSettings
Last active October 19, 2021 06:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-19T06:07:48.453Z","extensionVersion":"v3.4.3"}
@tillsanders
tillsanders / README.markdown
Last active October 24, 2022 18:41
How to add a page with all tags to the Casper 2 theme for the Ghost CMS
@tillsanders
tillsanders / bemit-sass-mixin.markdown
Last active October 7, 2021 08:58
BEMIT SASS Mixin
@tillsanders
tillsanders / administration-panel-boilerplate-for-laravel.markdown
Last active December 28, 2019 11:52
Administration Panel Boilerplate for Laravel

Administration Panel Boilerplate for Laravel (4)

I tried about every CMS there is. And I disliked most of them. There were only a handful that weren't a complete waste of time:

  • Contao (free and powerful, but the backend is ugly),
  • Kirby (nice and powerful, but paid),
  • Perch (powerful and good support, but ugly backend, paid, and complicated at times) and
  • Grav (beautiful, powerful and free, but not stable enough and a strange concept about pages).

At the end of the day, I still find myself building backends for every single project. There are some Laravel Admin Panels, but they are far from sexy or come with too much features.

@tillsanders
tillsanders / prevent-tap-highlighting.scss
Created June 25, 2015 11:04
Prevent tap highlighting on android, using sass mixin
@mixin no-tap-highlighting() {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
@tillsanders
tillsanders / checklist.markdown
Last active September 19, 2015 06:39
You-will-be-in-mortal-danger-if-you-dont-follow-this-checklist-checklist

The You-will-be-in-mortal-danger-if-you-dont-follow-this-checklist-checklist

Common pitfalls

  • Caching and temporary directories accessible (permissions!) by webserver
  • Webfonts available for production domain

Security

  • Are email adresses (a little) protected?
  • Do you need a captcha somewhere?
  • Debug disabled
@tillsanders
tillsanders / regex-stuff.markdown
Last active August 29, 2015 14:23
Useful regex stuff

Useful regex stuff I wrote

Make links clickable:

$re = "/((?:http:\/\/|www\.).*)(?:\s|$)/U";
$html = preg_replace($re, '<a href="$1" target="_blank">$1</a> ', $plain);

@tillsanders
tillsanders / max-height.js
Created June 11, 2015 12:38
Get max height of a jquery collection
// Found at Stackoverflow: http://stackoverflow.com/questions/6060992/element-with-the-max-height-from-a-set-of-elements
// Credits to http://stackoverflow.com/users/139010/matt-ball
var maxHeight = Math.max.apply(null, $("li").map(function ()
{
return $(this).height();
}).get());