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
<template> | |
<div> | |
<buk-event-modal @save-event="sendEvent" v-if="buildModal"></buk-event-modal> | |
<full-calendar ref="calendar" :config="config" :events="events" :editable="false"></full-calendar> | |
</div> | |
</template> | |
<script> | |
import BukEventModal from './BukEventModalComponent.vue'; |
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
public function getServiceAccountAccessToken() { | |
// put the serviceAccount credentials in the env variable | |
putenv('GOOGLE_APPLICATION_CREDENTIALS=../resources/json/serviceAccount.json'); | |
// Add the scopes (here are the scopes to Firebase Auth) | |
$scopes = [ | |
"https://www.googleapis.com/auth/userinfo.email", | |
"https://www.googleapis.com/auth/firebase.database" | |
]; |
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 | |
function removeDirectory($dirPath) { | |
if (! is_dir($dirPath)) { | |
return false; | |
} | |
if (substr($dirPath, strlen($dirPath) - 1, 1) != '/') { | |
$dirPath .= '/'; | |
} |
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 | |
use Cendi\App; | |
$app = new App(); | |
$app->setTitle('Cadastro de Pessoas'); | |
$app->addInput('nome'); | |
$app->addInput('tipo', 'select', ['fisica' => 'Pessoa Física', 'juridica' => 'Pessoa Jurídica']); | |
$app->addInput('descricao', 'text'); |
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 | |
use Illuminate\Database\Seeder; | |
use Spatie\Permission\Models\Role; | |
use Spatie\Permission\Models\Permission; | |
class RolesAndPermissionsSeeder extends Seeder | |
{ | |
public function run() | |
{ |
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
import View from '../base/View.js'; | |
export default class TextView extends View { | |
init() { | |
this.setElement('text-editor'); | |
this.setData({'mode': 'insert'}); | |
} | |
initElements() { |
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 | |
public function getTaskAttribute() | |
{ | |
if($this->commentable_type == 'App\Task') return $this->commentable; | |
return null; | |
} | |
public function getProjectAttribute() | |
{ |
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 | |
public function project() | |
{ | |
return $this->belongsTo(Project::class, 'commentable_id', 'id'); | |
} | |
public function task() | |
{ | |
return $this->belongsTo(Task::class, 'commentable_id', 'id'); | |
} |
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 Monster { | |
// ... | |
moveAwayFromPlayer() { | |
this.statuses.CLOSE_TO_PLAYER = false; | |
this.level.interpolate(this, 'distanceBeetweenPlayer', 1.5, 1500); | |
} | |
// ... more methods here | |
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 | |
$collection = collect(['um', 'dois', 'tres', 'quatro', 'cinco']); |
OlderNewer