$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
image: python:2.7 | |
before_script: | |
- echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" | tee /etc/apt/sources.list.d/google-cloud-sdk.list | |
- curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
- apt-get update && apt-get install google-cloud-sdk | |
after_script: | |
- rm /tmp/$CI_PIPELINE_ID.json |
import hapi from 'hapi'; | |
import graphql from 'graphql'; | |
import { ApolloHAPI } from 'apollo-server'; | |
const myGraphQLSchema = new graphql.GraphQLSchema({ | |
// define your schema in GraphQL.js syntax here ... | |
}); | |
const server = new hapi.Server(); |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |
var audit = { //configure audit settings | |
export: { | |
project_id: 'PROJECT ID TO AUDIT QUERIES FROM' | |
}, | |
import: { | |
project_id: 'PROJECT ID TO STORE AUDIT DATA IN', | |
dataset_id: 'DATASET ID TO STORE AUDIT DATA IN', | |
table_id: 'TABLE ID TO STORE AUDIT DATA IN' | |
} | |
}; |
#!/usr/bin/env python | |
# vim: ts=4:sw=4:expandtab:autoindent: | |
import os | |
import sys | |
import requests | |
import filecmp | |
from fabric.context_managers import hide, settings, prefix | |
from fabric.api import sudo, task, run, cd, env | |
from fabric.contrib.console import confirm | |
from fabric.colors import green |
# Get youtube id | |
#http://youtu.be/5Y6HSHwhVlY | |
#http://www.youtube.com/embed/5Y6HSHwhVlY?rel=0 | |
#http://www.youtube.com/watch?v=ZFqlHhCNBOI | |
regex = re.compile(r'(https?://)?(www\.)?(youtube|youtu|youtube-nocookie)\.(com|be)/(watch\?v=|embed/|v/|.+\?v=)?(?P<id>[A-Za-z0-9\-=_]{11})') | |
match = regex.match(self.youtube_url) |
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |