The firebase.json
should be in the root of the workspace and it only shows the relevant bits.
Put the webpack config into modules/firebase/
Before deploying the functions, build the function bundle with webpack
(it will end up in dist/
).
javascript:fetch(`https://unsplash.com/photos/${document.location.href.split('/').pop()}/download`).then(({url}) => window.open(`${url.split('?')[0]}?w=2048&h=1024&fit=crop`)) |
The firebase.json
should be in the root of the workspace and it only shows the relevant bits.
Put the webpack config into modules/firebase/
Before deploying the functions, build the function bundle with webpack
(it will end up in dist/
).
import * as functions from 'firebase-functions' | |
import {ApolloServer, gql} from 'apollo-server-cloud-functions' | |
const typeDefs = gql` | |
type Query { | |
hello: String | |
} | |
` | |
const resolvers = { |
synoindex -R {all|photo|music|video|thumb} |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Cucumber", | |
"program": "${workspaceRoot}/node_modules/.bin/cucumber-js", | |
"args": [], | |
"internalConsoleOptions": "openOnSessionStart", |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", |
https://play.google.com/store/ereview?docId=_ID_OF_APP_ |
RETRIES=30 | |
until docker exec -t $CONTAINERNAME psql -U postgres -c \\d > /dev/null || [ $RETRIES -eq 0 ]; do | |
echo "Waiting for postgres server, $((RETRIES--))..." | |
sleep 1 | |
done |
curl https://api.pushbullet.com/v2/pushes -X POST -u <access token>: --header "Content-Type: application/json" --data-binary "{\"type\": \"note\", \"title\":\"Note Title\", \"body\": \"Note Body\"}" |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'My App', | |
home: MyHomePage(), |