- Set an environment variable called
CMDER_ROOTto your root Cmder folder (in my caseC:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. - In your IntelliJ terminal settings, use
"cmd" /k ""%CMDER_ROOT%\vendor\init.bat""as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
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
| ABNC - Academia Brasileira de Neurocirurgia | |
| AGU - Advocacia-Geral da União | |
| ANAC - Agência Nacional de Aviação Civil | |
| CAER - Clube de Aeronáutica | |
| CAU - Conselho de Arquitetura e Urbanismo | |
| CBM - Corpo de Bombeiro Militar | |
| CFA - Conselho Federal Administração | |
| CFB - Conselho Federal de Biblioteconomia | |
| CFBIO - Conselho Federal de Biologia | |
| CFBM - Conselho Federal de Biomedicina |
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
| # Use this to block Spotify ad servers | |
| # sources: | |
| # https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/ | |
| # https://gist.github.com/teomaragakis/cb187d880c9a3ca2c8a2 | |
| # https://gist.github.com/Shujito/b7a8f8f971b22f49b4313d7d3e8e6931 | |
| # https://gist.github.com/rifkyekayama/f7c43e470f23878b20416e68f73829dc | |
| # https://gist.github.com/shokoylele/8f4160a102480471cb946fbd800bc86a | |
| ############## Begin manual list | |
| # 127.0.0.1 spclient.wg.spotify.com # might block the entire Spotify app from working too |
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 { Directive, HostListener } from '@angular/core'; | |
| @Directive({ | |
| selector: '[appNoDblClickMat]' | |
| }) | |
| export class NoDblClickDirectiveMat { | |
| constructor() { } | |
| @HostListener('click', ['$event']) |
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
| ## | |
| ## How to install mcrypt in php7.2 / php7.3 | |
| ## Linux / MacOS / OSX | |
| ## | |
| ## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
| # |
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 static function boot() | |
| { | |
| parent::boot(); | |
| static::bootStapler(); | |
| static::AddGlobalScope('pf', function ($query) { | |
| $query->whereType('pf'); | |
| }); | |
| static::saving(function ($model) { | |
| $model->type = 'pf'; | |
| }); |
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 validaCPF($cpf) { | |
| // Extrai somente os números | |
| $cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
| // Verifica se foi informado todos os digitos corretamente | |
| if (strlen($cpf) != 11) { | |
| return false; |
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 Reader from './Reader'; | |
| import Target from './Target'; | |
| /** | |
| * This is default annotation property for automatic type casting: | |
| * <code> | |
| * @Annotation({ some: any }) | |
| * // => will be casts "as is" {some: any} | |
| * | |
| * @Annotation("any") |
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
| const getErrors = (inputData, validationRules, globalOptions) => { | |
| const errors = {} | |
| const addError = (key, errorMessage) => { | |
| if(!(key in errors)) errors[key] = [] | |
| errors[key].push(errorMessage) | |
| } |
NewerOlder