I hereby claim:
- I am sanchezcarlosjr on github.
- I am cest (https://keybase.io/cest) on keybase.
- I have a public key ASArAlpB_HsLRSSA3UWi0UiRLb8yy02XDRPSI6_W1WCPIgo
To claim this, I am signing this object:
def main(): | |
return "Hello world"; |
import { NgxsFirestore } from './ngxs-firestore.service'; | |
import { BehaviorSubject, Observable } from 'rxjs'; | |
import { QueryFn } from '@angular/fire/firestore'; | |
import { map, take } from 'rxjs/operators'; | |
class QueryPagination { | |
private lastVisible: any = null; | |
constructor(queryFn: QueryFn, private orderBy: string, private limit: number, private orderByDirection?: any) { | |
this.setQuery(queryFn); |
import { NgxsFirestorePagination} from '@ngxs-labs/firestore-plugin'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class RacesService extends NgxsFirestorePagination<RacesStateModel> { | |
path = 'Races'; | |
orderBy = 'created_at'; | |
orderByDirection = 'desc'; | |
format: (data) => data; //Each document format |
<div> | |
<div *ngFor="let article of articles | async"> | |
<h1>{{article.title}}</h1> | |
<p><{{article.content}}/p> | |
<p>{{article.created_at}}</p> | |
</div> | |
</div> | |
<-- Whatever component --> | |
<ion-infinite-scroll threshold="100px" (ionInfinite)="loadData($event)"> |
import { AngularFireModule } from '@angular/fire'; | |
import { NgxsModule } from '@ngxs/store'; | |
import { NgxsStoreModule } from '../store/store.module'; | |
@NgModule({ | |
declarations: [AppComponent], | |
imports: [ | |
//... | |
AngularFireModule.initializeApp(environment.firebase), | |
NgxsStoreModule | |
], |
sudo pwd && cd ~/Downloads && wget -q -O- https://julialang.org/downloads/ | grep -Po '(?<=href=")[^"]*' | grep ^https://julialang-s3.julialang.org/bin/linux/x64/ | head -1 | xargs wget -O julia-x86_64.tar.gz && mkdir julia-x86_64 && tar -xvzf julia-x86_64.tar.gz -C julia-x86_64 --strip-components 1 && sudo cp -r julia-x86_64 /opt/ && sudo ln -s /opt/julia-x86_64/bin/julia /usr/local/bin/julia && julia |
import * as dialogflow from '@google-cloud/dialogflow'; | |
import { uuid } from 'uuidv4'; | |
import { NaturalProcessorLanguage } from '../domain/NaturalProcessorLanguage'; | |
import * as protos from '@google-cloud/dialogflow/build/protos/protos'; | |
export class Dialogflow implements NaturalProcessorLanguage { | |
private responses: | |
[protos.google.cloud.dialogflow.v2.IDetectIntentResponse, | |
protos.google.cloud.dialogflow.v2.IDetectIntentRequest | undefined, {} | undefined]; | |
async detectIntent(text: string, sessionId: string = uuid()): Promise<string> { |
<?php | |
require_once 'HTTP/Request2.php'; | |
$request = new HTTP_Request2(); | |
$request->setUrl('https://us-west4-arsus-production.cloudfunctions.net/curp?curp=CAHF620818HMNLNL09&apiKey=pT32raieZC3'); | |
$request->setMethod(HTTP_Request2::METHOD_GET); | |
$request->setConfig(array( | |
'follow_redirects' => TRUE | |
)); | |
try { | |
$response = $request->send(); |
I hereby claim:
To claim this, I am signing this object: