Skip to content

Instantly share code, notes, and snippets.

View crealistiques's full-sized avatar

crealistiques

View GitHub Profile
@electricg
electricg / readme.md
Created August 15, 2012 18:57
Install SASS and Compass on Mac OSX

gem install sass

If you installed as your "normal" user account (didn't sudo), you most likely missed the warning message like this one:

WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/jclark/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Try this:

@Cengizism
Cengizism / password_strength_plugin.js
Created November 16, 2013 20:27
password_strength_plugin.js
/**
* password_strength_plugin.js
* Copyright (c) 2009 myPocket technologies (www.mypocket-technologies.com)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,

Kirby + Patterns = <3

When I heard about Brad Frost's Patternlab for the first time at beyond tellerrand I was intrigued. The idea of splitting your design work for a website into simple modules or patterns isn't new and starts to become more and more of a standard. But organizing this into a very visual styleguide/patternlab seemed to make so much sense. Brad also introduced a very interesting approach with his separation of modules into categories, such as atoms, molecules and organisms.

I started porting Brad's patternlab app to Kirby, but it never really made it to something polished and it turned out for me after using it for Kirby's panel UI, that it's actually a pain in the ass to maintain such a pattern collection.

The problem of patternlab

The problem with such a styleguide or patternlab is that it exists next to the real thing. When you change something in your code base you also have to update the particular code for the pattern in patternlab. To be honest I went very quickly from being

@ogrosko
ogrosko / Libs.ts
Created September 22, 2016 10:23
Typo3 RTE table class
lib.parseFunc_RTE {
externalBlocks {
table {
stdWrap {
wrap = <div class="table-responsive">|</div>
HTMLparser.tags.table.fixAttrib.class.list:= addToList(table-bordered)
}
}
}
}
@joekolade
joekolade / DropzoneModifier.php
Last active March 3, 2023 11:09
[TYPO3 FE Edit] Enable frontend_editing with gridelements in TYPO3 CMS 8.7 #typo3 #typoscript
<?php
declare(strict_types=1);
namespace Vendor\Extension\Hooks;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\FrontendEditing\EditingPanel\FrontendEditingDropzoneModifier;
use TYPO3\CMS\FrontendEditing\Service\ContentEditableWrapperService;
/**