A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
# Edit here - set path to you directory with config.json & fonts | |
FONT_DIR ?= ./assets/vendor/fontello/src | |
### Don't edit below ### | |
FONTELLO_HOST ?= https://fontello.com | |
fontopen: | |
@if test ! `which curl` ; then \ |
<?php | |
// thanks to metaultralurker on reddit for inspiration | |
function map(callable $fn, \Traversable $data) { | |
foreach ($data as $v) { | |
yield $fn($v); | |
} | |
} |
+-----------------------------------------------------------------------------+ | |
| | | |
| A0. 0000 | | |
| AAV 0000 | | |
| AAV 0000 | | |
| _.n0000n._°0Q 0000 _.aaAaa._ _.aaAaa._ | | |
| .o0AAAAAAAAA0o. 0000 .00000"""00000. .00000"""00000. | | |
| 0AAP° °QAA0 0000 000° °000 000° °000 | | |
| 0AV VAA 0000 000 000 000 000 | |
# If you open your Ressource monitoring under OSX, you'll see that the | |
# Process "Spotify Helper" is eating between 20% and 30% of CPU constantly | |
# It means that when you're on battery, it'll drain it faster. | |
# To prevent the Spotify Helper (which are basically ads for spotify) from spawning process, | |
# you should disable access to the app doing this (close Spotify first) : | |
sudo chmod 000 "/Applications/Spotify.app/Contents/Frameworks/Spotify Helper EH.app" | |
sudo chmod -N "/Applications/Spotify.app/Contents/Frameworks/Spotify Helper EH.app" |
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
{ | |
"monolog": { | |
"title": "Monolog log file", | |
"description": "Monolog log format", | |
"url": "https://github.com/Seldaek/monolog", | |
"regex": { | |
"default": { | |
"pattern": "\\[(?P<timestamp>.*)\\] (?P<logger>\\w+).(?P<level>\\w+): (?P<message>[^\\[\\{]+) (?P<context>[\\[\\{].*[\\]\\}]) (?P<extra>[\\[\\{].*[\\]\\}])" | |
} | |
}, |
## | |
# Gzip Settings | |
## | |
gzip on; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_min_length 256; | |
gzip_comp_level 6; |