Skip to content

Instantly share code, notes, and snippets.

View mneuhaus's full-sized avatar

Marc Neuhaus mneuhaus

View GitHub Profile
<article <?php post_class(); ?>>
<div class="row">
<div class="col-xs-3">
<?php
if (get_the_post_thumbnail()) {
echo get_the_post_thumbnail($post_id, 'news-thumbnail', array('class' => 'img-responsive'));
} else {
echo 'kein thumbnail vorhanden';
}
?>
@mneuhaus
mneuhaus / 0_reuse_code.js
Created October 2, 2013 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mneuhaus
mneuhaus / autoconf213
Created December 2, 2012 10:13 — forked from msonnabaum/gist:1306569
install xhprof on mamp for php 5.3.*
require 'formula'
class Autoconf213 < Formula
url 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz'
homepage 'http://www.gnu.org/software/autoconf/'
md5 '9de56d4a161a723228220b0f425dc711'
def install
system "./configure", "--program-suffix=213",
"--prefix=#{prefix}",