Skip to content

Instantly share code, notes, and snippets.

@OzzyCzech
OzzyCzech / CountEmail.php
Created Feb 3, 2014
Wordpress send email statistics made easy and simple with Google Graph
View CountEmail.php
<?php
/**
* @author Roman Ožana <ozana@omdesign.cz>
*/
class CountEmail {
/**
* @return MailFrom
*/
public static function init() {
@OzzyCzech
OzzyCzech / menu.js
Created Mar 24, 2014
Node.js nested menu generation from list of files
View menu.js
// console.log('/this/will/be/path'.);
var dirname = require('path').dirname;
var basename = require('path').basename;
var normalize = require('path').normalize;
var resolve = require('path').resolve;
var writeFile = require('fs').writeFile;
var extname = require('path').extname;
var slug = require('speakingurl');
//var _ = require('underscore')._;
@OzzyCzech
OzzyCzech / index.md
Last active Aug 29, 2015
Pár poznámek k odesílání emailů
View index.md

Poznámky k odesílání emailů

Co vás čeká

Bolestivá cesta fragmentace trhu, velikosti zařízení, bugujících aplikací. Občas šílené řešení

Bulletproof email buttons design:

	<div><!--[if mso]>
@OzzyCzech
OzzyCzech / jquery-plugin.coffee
Last active Aug 29, 2015
JQuery Plugins : Coffee script Class Boilerplate
View jquery-plugin.coffee
do($ = jQuery, window = window) ->
class MyPlugin
options:
some: null
options: null
constructor: (@el, @options) ->
@options = $.extend({}, @options, options)
@OzzyCzech
OzzyCzech / generateMenu.php
Created Apr 4, 2014
Simple way how to structured list from RecursiveDirectoryIterator
View generateMenu.php
<?php
function generateMenu(\RecursiveIterator $iterator, $level = 0) {
$iterator->rewind();
$output = '';
while ($iterator->valid()) {
$output .= '<li>';
@OzzyCzech
OzzyCzech / release.sh
Created Apr 29, 2014
Send release message to email
View release.sh
DATE=`date "+%Y-%m-%d %H:%M:%S"`
PREDPOSLTAG=`git tag -l release* | tail -n 2 | head -1`
echo "`git log $PREDPOSLTAG.. --no-merges --oneline --date=relative --pretty=format:'[%h] %s (%cr) <%an>' --abbrev-commit`" | mail -E -s "[RELEASE] Testomato $DATE" "aaa@bbb.com"
@OzzyCzech
OzzyCzech / citaty.md
Last active Aug 29, 2015
Citáty a přísloví
View citaty.md

Člověk může mockrát selhat, ale zoufalcem se stává až ve chvíli, kdy začne obviňovat druhé.

John Burroughs

@OzzyCzech
OzzyCzech / print.less
Created Jul 3, 2014
LESS for printing
View print.less
@media print {
header, footer {
.responsive-invisibility();
}
a[href^="mailto"] {
//text-decoration: none;
&:after {
content: '' !important;
@OzzyCzech
OzzyCzech / feedback.phtml
Created Jan 21, 2015
Twitter Boostrap feedback Form
View feedback.phtml
<style>
#feedback {
float: left;
position: fixed;
top: calc(50% - 47px);
right: 0;
}
#feedback a {
background: #FF4500;
@OzzyCzech
OzzyCzech / loader.svg
Created Apr 29, 2015
Simple animated process loader
View loader.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.