This file contains hidden or 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
| # usage: .\folders_usage.ps1 'C:\Program Files (x86)\' -Tree 2 | |
| param( | |
| [Parameter(Mandatory=$true, Position=0)] | |
| [string]$Folder, | |
| [int]$Tree = 0 | |
| ) | |
| if (-not (Test-Path $Folder)) { | |
| Write-Error "Folder '$Folder' does not exist." |
This file contains hidden or 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
| export class AvatarGenerator { | |
| constructor({ size, singleColorMode = false, bgColor = '#FFFFFF', singleColor = null, className = 'avatar' }) { | |
| this.size = size; | |
| this.singleColorMode = singleColorMode; | |
| this.bgColor = bgColor; | |
| this.singleColor = singleColor; | |
| this.className = className; | |
| this.canvas = document.createElement('canvas'); | |
| this.canvas.width = size; | |
| this.canvas.height = size; |
This file contains hidden or 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\Controller; | |
| use Pimcore\Bundle\AdminBundle\Controller\AdminController; | |
| use Pimcore\Db; | |
| use Pimcore\Event\BundleManager\PathsEvent; | |
| use Pimcore\Model\DataObject\ClassDefinition; | |
| use Symfony\Component\HttpFoundation\JsonResponse; | |
| use Symfony\Component\HttpFoundation\Response; |