Skip to content

Instantly share code, notes, and snippets.

View larrycinnabar's full-sized avatar

Evghenii Maslennikov larrycinnabar

View GitHub Profile
<?php
$pattern = '#a\s+href\s*=\s*"(.+)"#';
$str = 'Get your image here: <a href="http://google.com">here</a>';
$matches = [];
preg_match ( $pattern ,$str,$matches);
$link = $matches[1];
@larrycinnabar
larrycinnabar / adb_logcat.log
Created September 17, 2015 12:30
nexus 4 adb logcat
--------- beginning of /dev/log/main
I/bdAddrLoader( 172): option : f=/persist/bluetooth/.bdaddr
I/bdAddrLoader( 172): option : h
I/bdAddrLoader( 172): option : x
I/bdAddrLoader( 172): Read From /persist/bluetooth/.bdaddr by Path type(0x11), Data type (0x21)
I/installd( 163): installd firing up
I/bdAddrLoader( 172): Output Data type(0x22), bPrintout(1), bPath((null))
I/bdAddrLoader( 172): Loaded Data type(0x21)
I/bdAddrLoader( 172): hex_to_ascii() - converted Data (C4438F04E3B0)
I/DEBUG ( 157): debuggerd: Feb 8 2013 22:00:43
// ==== 1. Было так:
// header.less
.header.container {
background : @dark-bg-color;
.media-for( height, @header_height);
.wrapper {
height : 100%; // height of .header.container (is set below in media queries)
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">