Skip to content

Instantly share code, notes, and snippets.

@mlewand
mlewand / KINGUseLongDateFormat-element.html
Created September 16, 2014 08:41
Sample code to check Quail test cases count.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>title</title>
</head>
<body>
<div id="sampleContent">
<h1>Short date 12-04-12</h1>
<p>Short date 12-04-12</p>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>title</title>
</head>
<body>
<div id="sampleContent">
<p>Short date <font>10.02.2011</font></p>
</div>
@mlewand
mlewand / all.md
Last active August 29, 2015 14:11
Quail tests overview.

All Tests

This file lists all tests in Quial.

aAdjacentWithSameResourceShouldBeCombined (custom, 1)

Adjacent links that point to the same location should be merged

See source.

@mlewand
mlewand / quailSample.html
Created February 6, 2015 15:14
Quail should call `testCollectionComplete` after a brief timeout, causing an alert.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>title</title>
</head>
<body>
<div id="sampleContent">
<p>This element contains <b>bold</b>.</p>
</div>
@mlewand
mlewand / gmailSignature.html
Created June 18, 2015 10:40
Signature produced by Gmail.
-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class="">Piotrek Koszuliński<br class="">
CKEditor JavaScript Lead Developer<br class="">
--<br class="">
CKSource - <a moz-do-not-send="true" href="http://cksource.com/" target="_blank" class="">http://cksource.com</a><br class="">
--<br class="">
Follow CKEditor on: <a moz-do-not-send="true" href="http://twitter.com/ckeditor" target="_blank" class="">Twitter</a>
| <a moz-do-not-send="true" href="http://www.facebook.com/ckeditor" target="_blank" class="">Facebook</a>
| <a moz-do-not-send="true" href="https://plus.google.com/107736718646302128806" target="_blank" class="">Google+</a>&nbsp;| <a moz-do-not-send="true" href="http://www.linkedin.com/company/cksource" target="_blank" class="">LinkedIn</a></div>
@mlewand
mlewand / content-editable-features.md
Created August 13, 2015 22:56
A list of features that contentEditable (or components that mimics it) should provide.

content-editable-features

This repository contains a list of features that contentEditable (or components that mimics it) should provide. This came as a result of ContentEditable — The Good, the Bad and the Ugly post followed up by Twitter discussion.

  • Selection
    • Ranges
      • Possibly multiple ranges (Currently supported only on FF)
      • Take care of selection orientation (there are differences for selection made from left to right and vice-versa)
  • User interaction
    • touch support
@mlewand
mlewand / customBrowseHandler.js
Created October 15, 2015 10:14
An example how one might add custom file browsing handler for CKEditor.
CKEDITOR.replace( 'editor', {
on: {
// You need to listen to dialogShow event.
dialogShow: function( evt ) {
// Getting browse button object.
var browseButton = evt.data.getContentElement( 'info', 'browse' );
if ( browseButton ) {
browseButton.on( 'click', function( evt ) {
// Do your custom logic here, e.g. display a floating div with UI.
@mlewand
mlewand / Enemy_Hit_Notifier.cpp
Last active January 23, 2016 14:22
An example of UAnimNotify inheriting class.
// Fill out your copyright notice in the Description page of Project Settings.
#include "sample1.h"
#include "Enemy_Hit_Notifier.h"
UEnemy_Hit_Notifier::UEnemy_Hit_Notifier( const FObjectInitializer& ObjectInitializer /*= FObjectInitializer::Get()*/ )
: Super( ObjectInitializer )
@mlewand
mlewand / codeExtensions
Last active July 11, 2018 11:32
List of Visual Studio Code extensions in my workspace.
$ code --list-extensions
abusaidm.html-snippets
ajhyndman.jslint
alefragnani.Bookmarks
alefragnani.project-manager
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
mlewand.ck4-test-mate
cmstead.jsrefactor