Skip to content

Instantly share code, notes, and snippets.

Aleksander Nowodzinski oleq

Block or report user

Report or block oleq

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
@oleq
oleq / example.html
Last active Feb 12, 2019
CKEditor 5 IframeView usage example
View example.html
<div id="editor">
<p>A paragraph.</p>
</div>
<style>
.ck .ck-balloon-panel iframe {
width: 400px;
height: 250px;
}
</style>
@oleq
oleq / cke5-postcss-theme-loader.js
Created Oct 16, 2017
A PostCSS theme loader for CKEditor 5
View cke5-postcss-theme-loader.js
const fs = require( 'fs' );
const path = require( 'path' );
const postcss = require( 'postcss' );
const postcssImport = require( 'postcss-import' );
const postcssCssnext = require( 'postcss-cssnext' );
module.exports = postcss.plugin( 'postcss-ck-theme-importer', ( options ) => {
const themeName = options.themePath.split( '/' ).slice( -1 );
console.log( `Using theme "${ themeName }".` );
@oleq
oleq / logui.js
Last active Jan 19, 2017
UI logger for CKEditor5
View logui.js
window.logUi = ( view ) => {
console.group( `%c ${ view.constructor.name}`, 'color: green' );
console.log( 'element', view.element );
for ( let col of view._viewCollections ) {
const isUnbound = col === view._unboundChildren;
const isEmpty = !col.length;
console[ isEmpty ? 'groupCollapsed' : 'group' ]( `%c ViewCollection (${ col.length }) ${ isUnbound ? '(unbound)' : '' }`, `color: ${ isEmpty? 'rgba(0,0,0,.3)' : 'black' }` );
@oleq
oleq / _README.md
Last active Jul 17, 2019
A2DP audio streaming using Raspberry PI (Raspbian Jessie)
View _README.md

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
                |
@oleq
oleq / ie8rocks.js
Created Jun 16, 2014
This is how IE8 plays with <object> (document#querySelector, element#childNodes)
View ie8rocks.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>IE8 rocks!</title>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
<param name="allowFullScreen" value="false" />
<param name="quality" value="high" />
View getWeek.js
var getWeek = function(d) {var e=new Date(d),f=e.setDate(d.getDate()-(d.getDay()+6)%7+3);e.setMonth(0,4);return((f-e)/6048e5)+1.5|0};
var testData = {
'2005-01-01': 53,
'2005-01-02': 53,
'2005-12-31': 52,
'2007-01-01': 01,
'2007-12-30': 52,
'2007-12-31': 01,
'2008-01-01': 01,
You can’t perform that action at this time.