This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Recursively takes the specified criteria and adds too the expression. | |
* | |
* The criteria is defined in an array notation where each item in the list | |
* represents a comparison <fieldName, operator, value>. The operator maps to | |
* comparison methods located in ExpressionBuilder. The key in the array can | |
* be used to identify grouping of comparisons. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Model; | |
class RasterBand | |
{ | |
/** | |
* @var float[][] | |
*/ | |
private $data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is working | |
public function testInsertNullRaster() | |
{ | |
$conn = $this->entityManager->getConnection(); | |
$stmt = $conn->prepare('SET NAMES \'UTF8\''); | |
$stmt->execute(); | |
$stmt = $conn->prepare('SELECT NEXTVAL(\'rasters_id_seq\')'); | |
$stmt->execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Entity/User.php | |
declare(strict_types=1); | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use Doctrine\ORM\Mapping as ORM; | |
use Ramsey\Uuid\Uuid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Command/CreateUserCommand.php | |
declare(strict_types=1); | |
namespace App\Command; | |
use App\Entity\User; | |
use Doctrine\ORM\EntityManagerInterface; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Lyle Scott, III // [email protected] | |
Multiple ways to rotate a 2D point around the origin / a point. | |
Timer benchmark results @ https://gist.github.com/LyleScott/d17e9d314fbe6fc29767d8c5c029c362 | |
""" | |
from __future__ import print_function | |
import math |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
brew install sdl2 freetype2 fontconfig pkg-config opus libpng libedit | |
cd ~ | |
mkdir ~/Documents/Gaming/ | |
mkdir ~/Documents/Gaming/Half\ Life\ 2 | |
mkdir ~/Documents/Gaming/Half\ Life\ 2\ Episodes | |
mkdir ~/Documents/Gaming/Portal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"outputs": [], | |
"source": [ | |
"import sys\n", | |
"\n", | |
"import numpy as np\n", |
OlderNewer