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
const interval = new PromisedInterval(async () => { | |
//Do something here | |
}, 5000); | |
// Start the loop running | |
interval.start(); // you can await this if you'd like to pause until something stops the interval | |
// Pause the execution after the current loop finishes |
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 App\Services\AlternateMailer; | |
use Illuminate\Mail\Mailer; | |
use Swift_Mailer; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Str; | |
use Swift_DependencyContainer; | |
use Illuminate\Support\ServiceProvider; |
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 App\Eloquent\Concerns; | |
use Illuminate\Support\Str; | |
use App\Eloquent\Relationships\LeaveableMorphToMany; | |
/** | |
* Trait HasCustomRelationships | |
* |
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
version: '3' | |
services: | |
web: | |
image: brettt89/silverstripe-web | |
working_dir: /var/www | |
ports: | |
- 8080:80 | |
volumes: | |
- .:/var/www/html | |
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
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 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 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 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 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 ( |
NewerOlder