Skip to content

Instantly share code, notes, and snippets.

@LinkedList
LinkedList / activity_main.xml
Created October 19, 2017 19:35 — forked from dadino/activity_main.xml
A CoordinatorLayout layout, with a Google Map that collapse itself. A TabLayout (inside the CollapsingToolbarLayout) provides navigation for the ViewPager, that sits just below the AppBarLayout. The FloatingActionButton is used to go to the next page in the ViewPager.
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
@LinkedList
LinkedList / project.php
Last active December 10, 2015 15:08
project balance
private function balance_details($requests) {
// Čerpání
$balance = array();
foreach ($requests as $request) {
// Není-li kód rozpočtové položky pak nastavíme na 0
$bgt_code = $request['bgt_code'] > 0 ? $request['bgt_code'] : 0;
// Defaultní nastavení
if (!isset($balance[$bgt_code])) {