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
';!*i|znnny}}T?<*=;'` | |
~;=}whhEhEEmEXmaS5SSwmamhwaSt?!, | |
;TjShSwSow5yawyjj55fj}jjoSySSawmmSSSSjs*:` | |
.?zzjfyyyjfjjyj}jututsjyu7tfjyjjjyaaoamShEUUEkS7!` | |
,zztz7z7ztzz7c777zzsI7Tc\\i7zcczInIuuIoyjyaowSmhkhk5u=, | |
.^zzuzLiL???*??*>?**?*>L**<*?*?*?LcTTiiLLTzssusnjSSoyymhS5yc;` |
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
#!/usr/bin/env zsh | |
# Start configuration added by Zim install {{{ | |
# ------- | |
# Modules | |
# ------- | |
# Sets sane Zsh built-in environment options. | |
zmodule environment | |
# Provides handy git aliases and functions. |
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/bash | |
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ |
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 modules\appmodule\controllers; | |
use Craft; | |
use craft\elements\Asset; | |
use craft\web\Controller; | |
use spicyweb\embeddedassets\Plugin as EmbeddedAssets; | |
use yii\web\Response; |
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 | |
function extractCssFiles(array $manifest, string $manifestKey): array | |
{ | |
$entry = $manifest[$manifestKey] ?? null; | |
if (!$entry) { | |
return []; | |
} |
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
$filteredBody = array_filter(Craft::$app->getRequest()->getBodyParams()); | |
Craft::$app->getRequest()->setBodyParams($filteredBody); |
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
# Allow caching for anything but private | |
if (!beresp.http.cache-control ~ "(?i)private") { | |
unset beresp.http.set-cookie; | |
} |
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 | |
// Type juggle keys as string or array | |
// ------------------------------------- | |
public function getFoo(mixed $keyOrKeys) | |
{ | |
} | |
// Variable args |
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
import {hot} from 'react-hot-loader/root'; | |
import React, {useState} from 'react'; | |
import Uppy from '@uppy/core'; | |
import XHRUpload from '@uppy/xhr-upload'; | |
import {DragDrop, StatusBar, ProgressBar} from '@uppy/react'; | |
import '@uppy/core/dist/style.css'; | |
import '@uppy/status-bar/dist/style.css'; | |
import '@uppy/progress-bar/dist/style.css'; | |
import '@uppy/drag-drop/dist/style.css'; | |
import {ReactSortable} from 'react-sortablejs'; |
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 modules\appmodule\transformers; | |
use craft\base\ElementInterface; | |
use League\Fractal\TransformerAbstract; | |
use modules\appmodule\AppModule; | |
use Tightenco\Collect\Support\Collection; | |
class ElementTransformer extends TransformerAbstract |