Skip to content

Instantly share code, notes, and snippets.

import bpy
selection = bpy.context.selected_objects
# Export each object.
for object in selection:
if object.type != 'MESH':
continue
bpy.ops.object.select_all(action='DESELECT')
diff --git a/plugin_description.xml b/plugin_description.xml
index fb0152d..b5951c2 100644
--- a/plugin_description.xml
+++ b/plugin_description.xml
@@ -269,6 +269,11 @@
Control the camera like in a First Person Shooter game: drag left to look left, etc.
</description>
</class>
+ <class name="rviz/Ortho" type="rviz::OrthoViewController" base_class_type="rviz::ViewController">
+ <description>
class Ompl < Formula
desc "Open Motion Planning Library consists of many motion planning algorithms"
homepage "http://ompl.kavrakilab.org"
url "https://bitbucket.org/ompl/ompl/downloads/ompl-1.0.0-Source.tar.gz"
sha256 "9bb6242ca723ab49b31fc5ac343a580cb7e6229bcf876c503c235f4cdd75376b"
depends_on "cmake" => :build
depends_on "boost"
depends_on "eigen" => :optional
depends_on "ode" => :optional
diff --git a/control/injector/InjectionCreator.php b/control/injector/InjectionCreator.php
index c521a68..fdfab80 100644
--- a/control/injector/InjectionCreator.php
+++ b/control/injector/InjectionCreator.php
@@ -6,7 +6,7 @@
* @package framework
* @subpackage injector
*/
-class InjectionCreator {
+class InjectionCreator implements InjectorObjectCreator {
@ajshort
ajshort / ApiController.diff
Created February 9, 2013 08:22
Exposes Packagist download counts.
@@ -95,10 +95,36 @@ class ApiController extends Controller
{
return $this->receivePost($request, '{^(?:https?://)?(?P<domain>bitbucket\.org)/(?P<repo>[\w.-]+/[\w.-]+?)/?$}');
}
/**
+ * @Route("/downloads/{name}", name="get_downloads", requirements={"name"="[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+"}, defaults={"_format" = "json"})
+ * @Method({"GET"})
+ */
+ public function getDownloadsAction(Request $request, $name)
{
"repositories": [
{
"type": "composer",
"url": "http://packages.zendframework.com"
}
],
"require": {
"php": ">=5.3.2",
"symfony/filesystem": "2.1.*",
name: extensions
---
SiteConfig:
extensions:
- CustomSiteConfigExtension
<?php
/**
* @package framework
*/
namespace SilverStripe\Framework;
use SilverStripe\Framework\Core\ModuleInterface;
/**
<?php
/**
* @package framework
* @subpackage core
*/
namespace SilverStripe\Framework\Core;
use SilverStripe\Framework\FrameworkModule;
use SilverStripe\Framework\Injector\Injector;
diff --git a/control/Session.php b/control/Session.php
index a4f13b5..e97d3ae 100644
--- a/control/Session.php
+++ b/control/Session.php
@@ -295,13 +295,20 @@ class Session {
// We still want to do this even if we have strict path checking for legacy code
$var = &$this->data;
$diffVar = &$this->changedData;
-
+