Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Domain\BrandBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Domain\BrandBundle\Form\Type\ColorType;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\FormEvents;
//
// main.cpp
// Lab_1
//
// Created by Alex Kuk on 21.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <math.h>
#include <iostream>
//
// main.cpp
// Lab_2
//
// Created by Alex Kuk on 21.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
# Add multimedia source
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-get update
# Go to local source directory
cd /usr/local/src
# Add multimedia source
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list
apt-get update
apt-get install deb-multimedia-keyring # if this aborts, try again
apt-get update
# Go to local source directory
cd /usr/local/src
//
// main.cpp
// Lab_4
//
// Created by Alex Kuk on 28.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
#include <stack>
//
// main.cpp
// Lab_3
//
// Created by Alex Kuk on 26.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
//
// main.cpp
// lab_5
//
// Created by Alex Kuk on 29.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb
sudo dpkg -i elasticsearch-1.1.1.deb
@lightsuner
lightsuner / after_inherited.rb
Created October 16, 2014 10:06
After Inherited callback
module App::AfterInherited
# Ruby 2.1
# http://stackoverflow.com/questions/7093992/how-to-have-an-inherited-callback-in-ruby-that-is-triggered-after-the-child-clas?answertab=active#tab-top
# http://t-a-w.blogspot.com/2007/04/settracefunc-smoke-and-mirrors.html
# end - module/class definition ended
# usage:
#
# class A