Skip to content

Instantly share code, notes, and snippets.

View cescoferraro's full-sized avatar
🏠
Working from home

cesco cescoferraro

🏠
Working from home
View GitHub Profile
@cescoferraro
cescoferraro / index.js
Last active September 17, 2020 08:04
AWS FARM ios issue
import webdriverIO from "webdriverio";
import {dirname} from "path";
import {fileURLToPath} from "url";
import {loginLogoutFN, loginLogoutSingleFN, loginLogoutWithPassword} from "./tests/shared";
import {editPassword} from "./tests/password";
import {setSettings} from "./tests/settings";
import {editProfile} from "./tests/profile";
import {addRecipeToCookBook} from "./tests/recipe";
import {findAndShareRecipeFromCookBook} from "./tests/cookbook";
import {findAndRemoveRecipeFromCookBook} from "./tests/cookbook_share";
@cescoferraro
cescoferraro / GraphQLDataFetchers.java
Created September 16, 2020 18:51
stackoverflow help
package br.com.b2breservas.api.graphql.mutation;
import graphql.schema.DataFetcher;
import org.springframework.stereotype.Component;
@Component
public class GraphQLDataFetchers {
public DataFetcher createUpdateIntegration() {
{
"additionalInfo": [],
"agencyStoreId": 47510,
"attachments": [],
"bookingNumber": 105213,
"bookingType": "CONFIRMED",
"code": null,
"comments": "obss",
"conciliationAt": null,
"conciliationData": false,
@cescoferraro
cescoferraro / menu.py
Created September 13, 2019 20:44
MELL NUKE HACK
import nuke
import timelog
nuke.addOnScriptLoad(timelog.Timelog().start_thread
@cescoferraro
cescoferraro / main.go
Last active May 17, 2019 02:48
D3 Crawler
package main
import (
"encoding/json"
"html"
"io/ioutil"
"log"
"net/http"
"net/url"
"regexp"
const pingEpic = (action$) => action$
.pipe(
filter((action: IAction) => action.type === 'PING'),
mergeMap((action: IAction) =>
ajax({
method: "GET",
url: apiURL() + "/party/" + action.payload
})
.pipe(
mergeMap((data) => {
2018/05/09 21:35:58 Request received from body
2018/05/09 21:35:58 [
{
"id": "5ae9cc30cc922d08eab5d47d",
"creationDate": 1525271600000,
"updateDate": -62135596800000,
"startDate": 1532988120000,
"endDate": 1533074520000,
"customerId": "5849ebe9cc922d4efdbf00e4",
"partyId": "5adfaa31cc922d5c7853f988",
@cescoferraro
cescoferraro / worker.form.tsx
Created February 23, 2017 02:09
testador de cpf.js
const TestaCPFFunction = (strCPF) => {
let Soma;
let Resto;
Soma = 0;
if (strCPF == "00000000000") {
return false
}
for (let i = 1; i <= 9; i++) {
Soma = Soma + parseInt(strCPF.substring(i - 1, i)) * (11 - i);
package image
import (
"io"
"os"
"strings"
"archive/tar"
"bytes"
"io/ioutil"
FROM alpine:3.4
RUN apk add --no-cache ca-certificates apache2-utils
ADD ./dist/bin/goapp /bin/goapp
CMD ["/bin/goapp"]