Skip to content

Instantly share code, notes, and snippets.

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

Marcelo Costa mesmacosta

🏠
Working from home
View GitHub Profile
// Database Object
{
"name": "medium",
"description": null,
"locationUri": "hdfs://namenode:8020/user/hive/warehouse/medium.db",
"parameters": {},
"privileges": null,
"ownerName": "root",
"ownerType": "USER",
"setParameters": true,
// Database Object
{
"name": "medium",
"description": null,
"locationUri": "hdfs://namenode:8020/user/hive/warehouse/medium.db",
"parameters": {},
"privileges": null,
"ownerName": "root",
"ownerType": "USER",
"setParameters": true,
// Hook Input Objects
{
"tableName": "post",
"dbName": "medium",
"owner": "root",
"createTime": 1569634020,
"lastAccessTime": 0,
"retention": 0,
"sd": {
"cols": [
{
"tableName": "post",
"dbName": "medium",
"owner": "root",
"createTime": 1569766653,
"lastAccessTime": 0,
"retention": 0,
"sd": {
"cols": [
{
// OLD Table
{
"tableName": "post",
"dbName": "medium",
"owner": "root",
"createTime": 1569766653,
"lastAccessTime": 0,
"retention": 0,
"sd": {
"cols": [
git remote add google https://source.developers.google.com/p/project/r/repo
git push google master
https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
gcloud auth activate-service-account --key-file sa.json
gcloud auth print-access-token
# The command returns an access token value.
# When calling a GCP API, pass the token value as a bearer token in an Authorization header
import { IPageData} from '../page-data'
import * as create from './pizza-order-create.apis'
import * as remove from './pizza-order-delete.apis'
import * as edit from './pizza-order-edit.apis'
import * as view from './pizza-order-view.apis'
class PizzaOrderPageData implements IPageData {
public name = 'pizza_order'
public url = '/'
// User details
/**
* A Wrapper to wait for a given StubbedAPI to return using cypress wait method
*
* @see StubbedAPI
* @see https://on.cypress.io/wait
* @param api - StubbedAPI that will be used.
* @param message - Message that will be shown once api returns.
* @param assertionFunction - Function that will be called after api returns,
* it will expose the xhr object for assertion
* @param log - Enable/Disable logging for cypress runner