This file contains 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
mutation{ | |
addOP( | |
airline: "gol" | |
from: "REC" | |
to: "CWB" | |
flightNumber: "G3-2087" | |
cabin: "EC" | |
duration: 320 | |
departureDate: "27/11/2017" | |
arrivalDate: "01/12/2017" |
This file contains 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
.env Laravel gitScrum | |
``` | |
APP_ENV=local | |
APP_KEY=base64:W2ToyfW8zHqtWfcZb1hp2kZgccbuy3XtERDyZywtVkE= | |
APP_DEBUG=true | |
APP_LANG=pt | |
APP_LOG_LEVEL=debug | |
APP_URL=http://localhost:3000 | |
APP_TITLE=teste |
This file contains 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
{ | |
getSmiles(ida: "2017-11-15", volta: "2017-11-30", criancas: "1", origem: "REC", adultos: "1", destino: "MAO") { | |
menorTarifa | |
taxaEmbarque | |
passagens { | |
pontos | |
opcoesIda { | |
nrVoo | |
origem | |
destino |
This file contains 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
gulp.task("scripts", function() { | |
return gulp | |
.src("./**/*.js") | |
.pipe(concat("all.js")) | |
.pipe(gulp.dest("./dist/")); | |
}); |
This file contains 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 React, { Component } from 'react'; | |
import { Segment, Tab, Icon, Table, Image } from "semantic-ui-react"; | |
import { graphql, compose } from "react-apollo"; | |
import { connect } from 'react-redux'; | |
import { withApollo } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
import getUserCache from '../../../graphql/query/currentUser.graphql'; | |
import smiles from "../../../graphql/mutation/getSmiles.graphql"; | |
import airports from "../../../graphql/mutation/getAirports.graphql"; |
This file contains 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
{ | |
"requestedFlightSegmentList": [ | |
{ | |
"type": "SEGMENT_1", | |
"flightList": [ | |
{ | |
"uid": "9gi2vlhuevvg31y75l4y", | |
"stops": 1, | |
"cabin": "ECONOMIC", | |
"sourceGDS": "AMADEUS", |
This file contains 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
getLinks(function() { | |
var t = document.getElementById("debitosPessoa"); | |
var trs = t.getElementsByTagName("tr"); | |
var data = []; | |
for (var i = 0; i < trs.length; i++) { | |
tds = trs[i].getElementsByTagName("td"); | |
for (var n = 0; n < trs.length; n++) { |
This file contains 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 DataTable getResultRegex(string text) | |
{ | |
DataTable gridList = new DataTable(); | |
DataTable result = new DataTable(); | |
gridList.Columns.Add("Match"); | |
result.Columns.Add("Result"); | |
string pattern = @"([0-9]{9})"; | |
foreach (Match m in Regex.Matches(text, pattern)) |
This file contains 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 DataTable getResultRegex(string text) | |
{ | |
DataTable gridList = new DataTable(); | |
gridList.Columns.Add("Match"); | |
string pattern = @"[A-Z]{2}\d{8}"; | |
foreach (Match m in Regex.Matches(text, pattern)) | |
{ | |
gridList.Rows.Add(m.Value); | |
} |
This file contains 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
#!/bin/bash | |
# install CUDA Toolkit v8.0 | |
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) | |
CUDA_REPO_PKG="cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb" | |
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/${CUDA_REPO_PKG} | |
sudo dpkg -i ${CUDA_REPO_PKG} | |
sudo apt-get update | |
sudo apt-get -y install cuda |
OlderNewer