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, Input } from '@angular/core'; | |
@Directive({ | |
selector: '[limit]', | |
host: { | |
'(keypress)': '_onKeypress($event)', | |
} | |
}) | |
export class LimitDirective { | |
@Input('limit') limit; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
AF|Afghanistan | |
AL|Albania | |
DZ|Algeria | |
AS|American Samoa | |
AD|Andorra | |
AO|Angola | |
AI|Anguilla | |
AQ|Antarctica | |
AG|Antigua And Barbuda | |
AR|Argentina |
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
<ion-item> | |
<ion-label floating>Tipo de Pessoa</ion-label> | |
<ion-select [formControl]="dataForm.controls['tipo_pessoa']" (ionChange)="selectPfOrPj()"> | |
<ion-option [value]="PF">PF</ion-option> | |
<ion-option [value]="PJ">PJ</ion-option> | |
</ion-select> | |
</ion-item> | |
<ion-item> | |
<ion-label floating>CPF</ion-label> | |
<ion-input type="tel" limit="14" pattern="\d*" mask="***.***.***-**" [formControl]="dataForm.controls['cpf']" (ionChange)="checkCpf()" [disableControl]="!isPF"></ion-input> |
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, ElementRef, HostListener } from '@angular/core'; | |
@Directive({ | |
selector: 'ion-searchbar[select-all],ion-input[select-all]' | |
}) | |
export class SelectAll { | |
constructor(private el: ElementRef) { | |
} |
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 | |
$dados = [ | |
'lote_id' => 1, | |
'beneficiario' => [ | |
'nome' => 'joão', | |
'idade' => 45 | |
] |
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
let url = 'https://api.zoop.ws/v1/marketplaces/{marketplace_id}/transactions'; | |
url = url.replace('{marketplace_id}', Zoop.keys.marketplaceId); | |
let options = { | |
method : 'POST', | |
url : url, | |
headers : { | |
'Accept' : 'application/json' | |
}, | |
body : { |
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 strict'; | |
/*================================================ | |
Module - Main app module | |
================================================ */ | |
angular.module('MedicareApp', ['ngRoute', 'MedicareApp.controllers', 'MedicareApp.services']) | |
.config(function($routeProvider, $locationProvider) { |
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\YourNamespace; | |
use Illuminate\Database\Eloquent\Builder as EloquentQueryBuilder; | |
use Illuminate\Database\Eloquent\Collection as EloquentCollection; | |
use Illuminate\Database\Query\Builder as QueryBuilder; | |
use Illuminate\Pagination\AbstractPaginator as Paginator; | |
abstract class BaseRepository |
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 os | |
import glob | |
import json | |
import pprint | |
from os import path | |
from os import listdir | |
import requests | |
from bs4 import BeautifulSoup | |
links = [] |
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
let uri = 'www.endpoint1.com'; | |
let uri2 = 'www.endpoint1.com/'; | |
let method1 = async() => { | |
let response = await Promise.resolve(fetch(uri)); | |
let items = []; | |
if (response.status === 200) { |
OlderNewer