Questions asked on the site require some preparation, such as showing that you've done your homework.
Sorry, but this is not an answer.
Please read the [faq].
Please read about XXX in the [faq#XXX].
#!/bin/bash | |
# Takes a composer controlled repo and pushes a | |
# composed PACKAGE into a branch called "PACKAGE". | |
( | |
# SANITY CHECKS | |
# Check for uncommitted changes, and refuse to proceed if there are any | |
if [ -n "$(git ls-files . --exclude-standard --others)" ]; then |
/* Copyright 2014 Code for the People Ltd | |
_____________ | |
/ ____ \ | |
_____/ \ \ \ | |
/\ \ \___\ \ | |
/ \ \ \ | |
/ / / _______\ | |
/ / / \ / | |
/ / / \ / |
#!/usr/bin/env sh | |
## | |
# Make your Mac feel like home... | |
# Shoutout to @dtsn for being generally awesome and getting me started. | |
# | |
# install it: | |
# curl -sL https://gist.github.com/BenNunney/7219538/raw/f9b933cca93b67dd63a2d8b1eeebb69e87dc9591/feels-like-home.sh | sh | |
# |
Questions asked on the site require some preparation, such as showing that you've done your homework.
Sorry, but this is not an answer.
Please read the [faq].
Please read about XXX in the [faq#XXX].
<?php | |
add_action( 'init', function () { | |
if ( ! function_exists( 'afc_add_item' ) || ! function_exists( 'apc_clear_cache' ) ) { | |
return; | |
} | |
afc_add_item( array( | |
'id' => 'apc', |
<?php | |
$pages = new query_loop( array( | |
'post_type' => 'page' | |
)); | |
foreach( $pages as $id => $post ) { | |
the_title(); | |
// etc... | |
} |
[Fact] | |
public void SmallestSignedAngleBetweenShouldWork () | |
{ | |
WMath.SmallestSignedAngleBetween(0.1, 0.2).Should().BeApproximately(0.1, 1e-5); | |
WMath.SmallestSignedAngleBetween(0.1, 0.2+Math.PI*2).Should().BeApproximately(0.1, 1e-5); | |
WMath.SmallestSignedAngleBetween(0.1, 0.2-Math.PI*2).Should().BeApproximately(0.1, 1e-5); | |
WMath.SmallestSignedAngleBetween(0.1+Math.PI*2, 0.2).Should().BeApproximately(0.1, 1e-5); | |
WMath.SmallestSignedAngleBetween(0.1-Math.PI*2, 0.2).Should().BeApproximately(0.1, 1e-5); |
Open the "Terminal" application in MacOS X, then copy paste the script and press enter. It will install VVV and all its dependencies.
It will also install an additional site that will show how to add your own sites ( site-name.dev ).
When finished, it will do several things:
www
folder in Finder for editing<?php # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Silent Flush | |
* Description: Flushes rewrite rules whenever a custom post type or taxonomy is registered and not already part of these rules. This is a soft flush, the .htaccess will not be rewritten. | |
* Version: 2013.05.04 | |
* Author: Thomas Scholz <info@toscho.de> | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |