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
| <script> | |
| import Form from './Form' | |
| import { update } from '../services/Users' | |
| export default { | |
| extends: Form, | |
| methods: { | |
| performSave() { | |
| const hideLoad = () => this.$loader.hide() | |
| this.$loader.show() |
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\Core\Providers; | |
| use Illuminate\Contracts\Auth\Access\Gate as GateContract; | |
| use Illuminate\Support\ServiceProvider; | |
| use App\Domains\Users\User; | |
| class AuthServiceProvider extends ServiceProvider | |
| { |
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
| <!-- OneSignal Push --> | |
| <script async='async' src='https://cdn.onesignal.com/sdks/OneSignalSDK.js'></script> | |
| <script> | |
| var OneSignal = window.OneSignal || []; | |
| OneSignal.push(["init", { | |
| appId: "Aqui entra o OneSignal App ID", | |
| subdomainName: 'bulfaitelo-project', | |
| httpPermissionRequest: { | |
| enable: true, | |
| modalTitle: 'Grato pela assinatura', |
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\Database\Schema; | |
| use Illuminate\Database\Schema\Blueprint as ParentBlueprint; | |
| use Illuminate\Support\Facades\DB; | |
| /** | |
| * Class Blueprint | |
| * |
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
| /* | |
| Hoje não deixaremos mais ninguém no vácuo no whatsapp | |
| Para utilizar: | |
| - Abra o web.whatsapp.com; | |
| - Abra o console e cole o código que está no gist; | |
| - Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem. | |
| Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da | |
| e como ser chato no mensseger: https://gist.github.com/mathloureiro/d3f91d19cf148838217e42a0c6df5ed8 | |
| */ |
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
| function calcChecker1 (firstNineDigits) { | |
| let sum = null | |
| for (let j = 0; j < 9; ++j) { | |
| sum += firstNineDigits.toString().charAt(j) * (10 - j) | |
| } | |
| const lastSumChecker1 = sum % 11 | |
| const checker1 = (lastSumChecker1 < 2) ? 0 : 11 - lastSumChecker1 |
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 Tmb; | |
| use Illuminate\Database\Eloquent\Model as Eloquent; | |
| use Illuminate\Validation\Validator; | |
| class BaseModel extends Eloquent | |
| { | |
| /** | |
| * Error message bag |
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
| <script> | |
| import c3 from 'c3' | |
| import { debounce, cloneDeep, defaultsDeep } from 'lodash' | |
| export default { | |
| name: 'c3-chart', | |
| props: { | |
| config: { | |
| type: Object, | |
| default: () => ({}) |
Sometimes it is necessary (and desireable) to work on a git repository on multiple development machines. We want to be able to push and pull between repositories without having to use an intermediary bare repository, and for this to work symetrically in both repositories.
First clone we clone an existing repository:
git clone ssh://user@hostname:/path/to/repo
By default this will name the remote as origin, but let's assume we want to reserve that name for a master repository that commits will eventually get pushed to:
OlderNewer