Skip to content

Instantly share code, notes, and snippets.

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
//
// main.cpp
// lab_5
//
// Created by Alex Kuk on 29.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
//
// main.cpp
// Lab_3
//
// Created by Alex Kuk on 26.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
//
// main.cpp
// Lab_4
//
// Created by Alex Kuk on 28.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
#include <stack>
# 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_2
//
// Created by Alex Kuk on 21.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
//
// main.cpp
// Lab_1
//
// Created by Alex Kuk on 21.05.14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <math.h>
#include <iostream>
<?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;
$('body').on('activate.bs.scrollspy', function(e) {
var hash = $(e.target).find('a').attr('href');
if(history.pushState) {
history.pushState({}, "", hash);
} else {
// Uncomment this for ie8 or ie9
//window.location.hash = hash;
}