Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Sim;
$wwwDir = __DIR__ . '/..';
define('WWW_DIR', $wwwDir); // BC
require_once $wwwDir . '/libs/Nette/loader.php';
require_once $wwwDir . '/app/inc/Configurator.php';
@Mikulas
Mikulas / README.md
Last active December 18, 2015 23:59
Translator macro for Sublime & Latte.

Translator macro for Sublime & Latte.

Wraps selection into {_'$selection'}

*Installation:(

  • save latte-translator.sublime-snippet into Packages/User/
  • add keybinding into Key Bindings - User.

Usage: select text and press ctrl+t

@Mikulas
Mikulas / tips.md
Created July 20, 2013 10:58
Github Markdown Hacks

Images

Inline image without link - simply wrap your images with <a></a>, preventing Github from creating its own link.

<a>![your caption](http://placehold.it/350x150)</a>

With link   Without link

Also note that images served over https:// are not cached, which is useful for changing content without actually editing the image url itself. Example: CI status badges

@Mikulas
Mikulas / gist:6060787
Last active December 20, 2015 02:59
GitHub markdown task list bug
- [ ] foo
- [ ] (in parentheses)
- [ ] bar
  • foo
  • (in parentheses)
  • bar
@Mikulas
Mikulas / ‮enotselim.md
Last active December 20, 2015 03:08
Is setting time due for milestones all you ever wished? Comment below!

Dear GitHub,

please let us set time due for milestones.

Example

Regards,

@Mikulas
Mikulas / .gitignore
Last active December 23, 2021 05:31
abcd</script>alert('ok');</script> ‮abcd</script>alert('ok');</script>
*.*
@Mikulas
Mikulas / gist:6167483
Created August 6, 2013 18:54
Why is zsh so great
ls ~/**
alias -g S="| sort"
cd /u/lo/b<tab> => /usr/local/bin
cd usr srv
pwd # /srv/local/bin
RPROMPT
@Mikulas
Mikulas / test.md
Last active December 22, 2015 00:49
    1. 2013

What I really entered: 30. 8. 2013

Any suggestions why would GitHub parse it like a list AND start with 1 rather than the suggested number?

@Mikulas
Mikulas / c.sublime-build
Last active December 24, 2015 18:39
Sublime Text build system for raw c, runs console app in iTerm
{
"cmd" : [
"gcc $file_name -o ${file_base_name} && osascript -e 'tell application \"iTerm\" to activate' && osascript -e 'tell application \"iTerm\" to tell last terminal to tell the last session to write text \"$file_path/$file_base_name\"'"
],
"selector": "source.c",
"shell": true,
"working_dir": "$file_path"
}
@Mikulas
Mikulas / 0_reuse_code.js
Created December 11, 2013 21:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console