$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
| 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(); | |
| }); |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545