Skip to content

Instantly share code, notes, and snippets.

@symball
symball / profile.yaml
Last active March 4, 2025 04:23
Python hello world with Notebook and SQL
---
name: Python Hello World Test
ref: python_notebook_test
icon: "/demo/img/hello_world_cover.png"
description: Deploys SQL and Jupyter setup for interaction
version: 0.0.1
tools:
- ref: python
- ref: uv
vars:
@symball
symball / bare.json
Last active February 12, 2025 06:40
just a small test whilst doing some parsing
{
"name": "Bare",
"ref": "bare",
"description": "Placeholder",
"version": "0.0.1",
"tools": [{ "ref": "nodejs" }],
"apps": [
{
"name": "Test app",
"ref": "test_app",
@symball
symball / Test.php
Last active April 3, 2017 06:21
PHPUnit test
<?php
namespace Tests\AppBundle\Functional\Process;
/* The kernel test case we'll be using */
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use AppBundle\Entity\Post;
use AppBundle\Repository\PostRepository;
@symball
symball / gist.php
Last active March 10, 2016 06:31
Sonata Admin DataGrid filter trying to use foreign text index
<?php
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
/* Get the filtered tags */
$repo = $this->getConfigurationPool()->getContainer()->get('repository.tag');
$temp = $repo->findByType('job-role---buy-side');
/* Work the results in to a choice compatible array */
$choices = array();
foreach ($temp as $entry) { $choices[$entry->getTitle()] = $entry->getTitle(); }