Skip to content

Instantly share code, notes, and snippets.

@borekb
borekb / README.md
Last active August 29, 2016 13:09
GitHub-style preview for Markdown Edit
@borekb
borekb / README.md
Last active January 19, 2024 14:59
GitHub-style preview for stackedit.io

GitHub-style preview stylesheet for StackEdit.

The stylesheet is based on https://github.com/sindresorhus/github-markdown-css, see comments in github.css to learn what was updated.

How to use:

  1. Click "Raw" for the github.css file below
  2. Copy the URL
  3. Paste it into RawGit
  4. Copy the RawGit URL and add it in StackEdit > Settings > Extensions > UserCustom extension like this:
@borekb
borekb / web.xml
Last active December 21, 2015 14:59
Přidání servletu do ukázkové aplikace BlazeDS, aby Flash Builder dokázal načíst podporované služby a metody. Upravit soubor <blazeds>\tomcat\webapps\samples\WEB-INF\web.xml (předpokládá BlazeDS Turnkey edici, ne čistý BlazeDS).
<!-- přidat do elementu web-app, např. za MessageBrokerServlet -->
<servlet>
<servlet-name>RDSDispatchServlet</servlet-name>
<display-name>RDSDispatchServlet</display-name>
<servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
<init-param>
<param-name>useAppserverSecurity</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>10</load-on-startup>
(function() {
var MyClass;
MyClass = (function() {
})();
}).call(this);
@borekb
borekb / simple-di.php
Created March 13, 2012 00:02
Simplest
<?php
// třída, funkce, proměnná, prostě cokoliv, co poskytuje něco,
// co chce někdo jiný konzumovat
class Something {
function doWork() {
echo "some work...";
}
}