-- Create a table for Public Profiles
create table files (
id bigint generated by default as identity primary key,
user_id uuid references auth.users not null,
title text,
private boolean,
file_name text,
import json | |
import gspread | |
from oauth2client.service_account import ServiceAccountCredentials | |
from datetime import datetime, timezone | |
from coinbase_advanced_trader import coinbase_client | |
from coinbase_advanced_trader.config import set_api_credentials | |
# Link to Base Spreadsheet - https://docs.google.com/spreadsheets/d/1VYuy5cSnZiQqF4yp6_sVFpLXXXszCGEiMh-Z37mKims/edit?usp=sharing | |
COINBASE_PUBLIC_KEY = '' | |
COINBASE_PRIVATE_KEY = '' |
-- Create a table for Public Profiles
create table files (
id bigint generated by default as identity primary key,
user_id uuid references auth.users not null,
title text,
private boolean,
file_name text,
Docker Install steps (Copy and Paste as is within the SSH terminal. Make you are you sudo as root sudo su). | |
apt-get update | |
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install docker-ce docker-ce-cli containerd.io | |
docker run hello-world |
class Page { | |
int id; | |
String title; | |
String createdAt; | |
String updatedAt; | |
List<Content> content; | |
Page({ | |
this.id, | |
this.title, |
Integrating Prettier + ESLint + Airbnb Style Guide in VSCode
Automagically lint and format your code
npm init -y
exec 3<&1;bash <&3 <(curl https://raw.githubusercontent.com/paulolramos/eslint-prettier-airbnb-react/master/eslint-prettier-config.sh 2> /dev/null)
module.exports = wallaby => ({ | |
files: [ | |
{ | |
pattern: 'node_modules/babel-polyfill/dist/polyfill.js', | |
instrument: false, | |
}, | |
'filename.js', | |
], | |
tests: ['filename.spec.js'], |
import 'dart:html'; | |
import 'package:js/js.dart' as js; | |
num rotatePos = 0; | |
void main() { | |
query("#text") | |
..text = "Click me!" | |
..on.click.add((Event event){ | |
rotatePos += 360; |
class _HttpRequestUtils { | |
// Helper for factory HttpRequest.get | |
static HttpRequest get(String url, | |
onSuccess(HttpRequest request), | |
bool withCredentials) { | |
final request = new HttpRequest(); | |
request.open('GET', url, true); | |
request.withCredentials = withCredentials; |