Skip to content

Instantly share code, notes, and snippets.

Bytheriver Littlefield Req

Block or report user

Report or block Req

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View liferay_dump.ftl
<#-- dump.ftl
-- Generates tree representations of data model items.
-- Usage:
-- <#import "dump.ftl" as dumper>
-- <#assign foo =["your"].data[0].model />
-- <@dumper.dump foo />

TL;DR I'm a CKEditor core dev, I watched in which CKEditor was mentioned, I'm sad now.

Disclaimer: I am a CKEditor core developer since January 2012, so I've been working nearly exclusively with contenteditable for almost two years. That made me an expert in some of fields that WYSIWYG editor deals with and gave me a decent knowledge about the rest. Although, my opinion may be biased.

I watched the video from "contenteditable: Roll for sanity" presentation by Garann Means with great interest. The contenteditable feature is a base for all WYSIWYG editors (except those with completely custom rendering system like Google Docs), but is not popular and most web developers have no idea about such thing (what on the other hand does not surprise me). What's more, those who stumble upon it quite often fall into the standard trap:

Hey, we just met and this is crazy, but we've got few hours so let's create a new WYSIWYG editor maybe!

This approach to web devel

niflostancu / wkhtmltopdf.tablesplit.js
Last active May 31, 2019
WkHtmlToPdf Table Splitting Hack
View wkhtmltopdf.tablesplit.js
* WkHtmlToPdf table splitting hack.
* Script to automatically split multiple-pages-spanning HTML tables for PDF
* generation using webkit.
* To use, you must adjust pdfPage object's contents to reflect your PDF's
* page format.
* The tables you want to be automatically splitted when the page ends must
* have a class name of "splitForPrint" (can be changed).
themattharris / weekday_diff.php
Created Aug 12, 2011
weekday_diff - calculates the number of weekdays between two dates.
View weekday_diff.php
* Calculated the number of weekdays (M-F) between two timestamps (inclusive).
* @param string $from the timestamp to start measuring from
* @param string $to the timestamp to stop measuring at
* @param string $normalise whether the time of day should be ignored (forces times to yyyy-mm-ddT00:00:00+00:00)
* @return int the number of weekdays between the two timestamps
* @author Matt Harris
You can’t perform that action at this time.