Skip to content

Instantly share code, notes, and snippets.

View mateusz-szafarz's full-sized avatar

Mateusz mateusz-szafarz

View GitHub Profile
App.Popover = Ember.View.extend({
name: 'myPopover',
template: Ember.Handlebars.compile('<div class="popover" {{bindAttr name="name"}}><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title">test</h3><div class="popover-content"><p></p></div></div></div>')
});
App.TextField = Ember.TextField.extend({
didInsertElement: function() {
this._super();
var self = this;
Ember.run.schedule('actions', this, function() {
@mateusz-szafarz
mateusz-szafarz / sublime_text_conf
Created June 1, 2013 14:19
Sublime Text Configuration
// change behavior of switching between tabs
[
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
@mateusz-szafarz
mateusz-szafarz / twig_functions.twig
Last active December 17, 2015 23:39
Twig functions and filters
{# F I L T E R S #}
{{ word|striptags('<b>')|raw }} {# so that only <b> tag will be allowed. #}
@mateusz-szafarz
mateusz-szafarz / BasicDicContainer.php
Created November 29, 2012 23:40 — forked from Ocramius/BasicDicContainer.php
DIC container 101 in PHP
<?php
class B {
protected $c;
public function __construct(C $c) {
$this->c = $c;
}
}
class C {}
@mateusz-szafarz
mateusz-szafarz / config.yml
Created November 19, 2012 12:02 — forked from stof/config.yml
Storing Symfony 2.1 sessions outside the cache folder to keep them on deploy
framework:
session:
save_path: "%kernel.root_dir%/sessions/%kernel.environment%"
@mateusz-szafarz
mateusz-szafarz / gist:4108292
Created November 19, 2012 00:08 — forked from stof/gist:3473109
BoxFile to deploy a Symfony 2.1 app on Pagodabox
web1:
shared_writable_dirs:
- app/cache
- app/logs
- app/sessions
document_root: web
default_gateway: app.php
index_list: [app.php]
php_version: 5.3.10
php_extensions:

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for live environment!

I hope it's a help also for you!

#Installation stack

@mateusz-szafarz
mateusz-szafarz / awesome-php.md
Created November 1, 2012 23:11 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries