I hereby claim:
- I am c-goosen on github.
- I am crypticg00se (https://keybase.io/crypticg00se) on keybase.
- I have a public key ASAYzPxtVNGvrTnE9E_eL8-JSd0lGl_F2WqcNLwJgPZ9kQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# install requests | |
import requests | |
# install asyncio - also need python 3.5+ | |
import asyncio | |
from datetime import datetime | |
# install aiohttp | |
import aiohttp | |
test_url= 'http://slowwly.robertomurray.co.uk/delay/10000/url/http://google.com' |
import os | |
import json | |
from elasticsearch import Elasticsearch | |
# import aiohttp | |
# from aiomultiprocess import Process, Pool | |
# import multiprocessing | |
import asyncio | |
import time | |
import uuid | |
es = Elasticsearch() |
import os | |
import firebase_admin | |
from firebase_admin import credentials | |
import boto3 | |
from settings.local_settings import AWS_REGION, ENVIRONMENT | |
import json | |
firebase_config_file = 'app-admin-config-{}.json'.format(ENVIRONMENT) | |
firebase_admin_creds_file = 'app-admin-sdk-{}.json'.format(ENVIRONMENT) |
from python:3.6-alpine | |
COPY ./sanic /sanic | |
WORKDIR /sanic/ | |
RUN ls | |
RUN apk add --update --no-cache build-base python3-dev libffi-dev openssl-dev | |
RUN pip install -r requirements.txt | |
RUN python sanic.py |
//I import isApp on App start to detect whether or not its running in a browser. | |
// Useful during development. | |
// Usually works best with cordova platform browser | |
// ionic cordova platform add browser | |
// ionic cordova emulate browser -cl | |
// import { Platform } from 'ionic-angular/platform'; | |
// import { IsDebug } from '@ionic-native/is-debug'; | |
// TODO: Add more settings, detect cordova or not | |
console.log("\nSettings Being Loaded\n"); |
// Most of the guides didn't make this very clear. | |
// I need to load the map on my immediate position. | |
// Still needs some improvements | |
import { Component, ViewChild, ElementRef } from '@angular/core'; | |
import { Platform } from 'ionic-angular'; | |
import { Geolocation , | |
} from '@ionic-native/geolocation'; | |
import { GoogleMaps, | |
GoogleMap, |
# Script I use for quicker archiving of iOS builds. | |
# Might need to enter password for keychain based on your security preference | |
cd $(pwd)/platforms/ios | |
xcodebuild clean | |
cd ../../ | |
ionic cordova build ios --release --production | |
# --prod should minify and compress html/css/js assets. | |
cd $(pwd)/platforms/ios |