This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as functions from 'firebase-functions'; | |
const admin = require('firebase-admin'); | |
admin.initializeApp(functions.config().firebase); | |
var fetch = require('isomorphic-fetch'); | |
var btoa = require('btoa'); | |
var md5 = require('md5'); | |
exports.subscribeUser = functions.auth.user().onCreate(event => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
import types | |
from flask import Flask, jsonify, make_response, request, url_for, send_file | |
from app import celery, firebase, firestore_db | |
from app.post_tasks import * | |
from app.master_admin_tasks import check_group_outdated_accounts_token | |
from firebase_admin import db as firebase_db, firestore | |
from . import post | |
from ..models import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import datetime | |
from ..logger import get_logger | |
from ..models import LocationStats, Review, LocationMediaCustomers, Protocols | |
from firebase_admin import db as firebase_db | |
import arrow | |
from .. import celery | |
from datetime import datetime | |
from app.account import service as account_service | |
from app.google import google_service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import jsonify, make_response, request, url_for, send_file | |
from firebase_admin import db as firebase_db, firestore | |
from . import payment | |
from ..models import * | |
from app import get_app | |
import json | |
import arrow | |
from datetime import datetime, date, timedelta | |
from ..logger import get_logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=[[[1,2,[3]],4]=>[1,2,3,4]] | |
def flattJean(arr) | |
arr.each_with_object([]) do |element, flattened| | |
flattened.push *(element.is_a?(Array) ? flattJean(element) : element) | |
end | |
end | |
puts flattJean(a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Safari SQLite Hello World Example</title> | |
<script type="text/javascript" src="jquery-1.4.2.min.js"></script> | |
<script type="text/javascript"> | |
// The first thing we want to do is create the local | |
// database (if it doesn't exist) or open the connection | |
// if it does exist. Let's define some options for our |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Safari SQLite Hello World Example</title> | |
<script type="text/javascript" src="jquery-1.4.2.min.js"></script> | |
<script type="text/javascript"> | |
// The first thing we want to do is create the local | |
// database (if it doesn't exist) or open the connection | |
// if it does exist. Let's define some options for our |