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 | |
| class EditableTablePage extends Page { | |
| private static $has_many = [ | |
| 'TableRows' => 'TableRow' | |
| ]; | |
| public function getCMSFields(){ | |
| $fields = parent::getCMSFields(); |
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
| #Setup the autocomplete | |
| fpath=(~/.zsh/completion $fpath) #assuming the _docker-connect file is stored at ~/.zsh/completion/_docker-connect | |
| autoload -Uz compinit && compinit -i | |
| #The actual functions | |
| docker-connect () { | |
| docker exec -i -t $1 /bin/bash | |
| } | |
| docker-ip () { |
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 | |
| if (!function_exists('isHMR')) { | |
| /** | |
| * Get whether HMR is active. | |
| * | |
| * @return bool | |
| */ | |
| function isHMR() | |
| { |
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
| /* This is the main layout component */ | |
| class Full extends Component { | |
| static propTypes = { | |
| viewer: React.PropTypes.object.isRequired | |
| }; | |
| render() { | |
| return ( |
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
| null | |
| java.lang.StackOverflowError | |
| at com.intellij.openapi.util.Pair.hashCode(Pair.java:88) | |
| at gnu.trove.TObjectCanonicalHashingStrategy.computeHashCode(TObjectCanonicalHashingStrategy.java:8) | |
| at com.intellij.util.containers.RefHashMap$HardKey.set(RefHashMap.java:147) | |
| at com.intellij.util.containers.RefHashMap$HardKey.access$500(RefHashMap.java:136) | |
| at com.intellij.util.containers.RefHashMap.containsKey(RefHashMap.java:212) | |
| at com.intellij.util.containers.WeakHashMap.containsKey(WeakHashMap.java:36) | |
| at mobi.hsz.idea.gitignore.lang.IgnoreLanguage.getOuterFiles(IgnoreLanguage.java:223) | |
| at mobi.hsz.idea.gitignore.indexing.ExternalIndexableSetContributor.getAdditionalFiles(ExternalIndexableSetContributor.java:90) |
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
| class Creature extends Model { | |
| protected $with = [ | |
| 'entity' | |
| ]; | |
| public function entity(){ | |
| return $this->morphTo(); | |
| } |
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 App\Http\Resources; | |
| use App\Models\CropType; | |
| use Illuminate\Http\Resources\Json\ResourceCollection; | |
| class CropTypeCollectionResponse extends ResourceCollection | |
| { | |
| /** |
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
| type ExcludeXORIncludeXORNeither<T extends Serializer<T>> = | |
| | { exclude: object; include?: never; } | |
| | { exclude?: never; include: object; } | |
| | { exclude?: never; include?: never; }; | |
| abstract class Serializer<T extends Serializer<T> & ExcludeXORIncludeXORNeither<T>> { | |
| exclude?: object; | |
| include?: object; | |
| } |
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
| version: '3' | |
| services: | |
| web: | |
| image: brettt89/silverstripe-web | |
| working_dir: /var/www | |
| ports: | |
| - 8080:80 | |
| volumes: | |
| - .:/var/www/html | |