Skip to content

Instantly share code, notes, and snippets.

<script>
function initMap() {
var mapDiv = document.getElementById('map');
var myLatLng = {lat: 56.009391, lng: 92.814371};
var map = new google.maps.Map(mapDiv, {
center: myLatLng,
zoom: 16,
scrollwheel: false,
scaleControl: true,
@inskyer
inskyer / currency.php
Created April 7, 2016 07:23
currency
<?php
// Получаем текущие курсы валют в rss-формате с сайта www.cbr.ru
$content = get_content();
// Разбираем содержимое, при помощи регулярных выражений
$pattern = "#<Valute ID=\"([^\"]+)[^>]+>[^>]+>([^<]+)[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>[^>]+>([^<]+)[^>]+>[^>]+>([^<]+)#i";
preg_match_all($pattern, $content, $out, PREG_SET_ORDER);
$dollar = "";
$euro = "";
foreach($out as $cur)

#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 a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup