Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from "react";
import ReactDOM from "react-dom";
import AlbumFields from './albumFields';
import { ButtonToggle } from "reactstrap";
class Album extends Component {
constructor(props) {
super(props);
this.save = this.save.bind(this);
@DDavis1025
DDavis1025 / add-album.js
Created February 5, 2020 20:13
Downloading songs to a list and album's input fields to a database
import React, { Component } from "react";
import ReactDOM from "react-dom";
import styled from 'styled-components';
import { Delete } from 'styled-icons/typicons/Delete';
import Downloaded from './downloaded';
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
import { ButtonToggle } from "reactstrap";
import { Container, Row, Col } from 'reactstrap';
const reorder = (list, startIndex, endIndex) => {
@DDavis1025
DDavis1025 / App.js
Last active February 21, 2020 17:26
import React, { Component } from 'react';
import { BrowserRouter, Router, Route, Switch } from "react-router-dom";
import Profile from "./components/Profile";
import history from "./utils/history";
import './css/styles.css';
import Navbar from './components/navbar';
import Downloaded from './components/downloaded';
import DownloadTest from './components/downloadTest';
import ImageUpload from './components/image-upload';
import AddAlbum from './components/add-album';
// src/index.js
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import { Auth0Provider } from "./react-auth0-spa";
import config from "./auth_config.json";
import history from "./utils/history";
import React, { Component } from "react";
import ReactDOM from "react-dom";
import auth0Client from "../Auth";
import { useAuth0 } from "../react-auth0-spa";
import {Auth0Context} from "../react-auth0-spa"
import { Auth0Provider } from "../react-auth0-spa";
class AddAlbum extends Component {
constructor(props) {
super(props);
import React, { Component } from "react";
import ReactDOM from "react-dom";
import styled from 'styled-components';
import { Delete } from 'styled-icons/typicons/Delete';
import Downloaded from './downloaded';
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
import { ButtonToggle } from "reactstrap";
import { Container, Row, Col } from 'reactstrap';
import axios from 'axios';
import auth0Client from "../Auth";
import SwiftUI
struct Album: View {
var post:Post
var post2:[PostById]
var body: some View {
VStack {
Text("Title: ").bold()
+ Text("\(post.title)")
import Foundation
import UIKit
class FeedCell:UITableViewCell {
var albumImage = UIImageView()
var albumTitle = UILabel()
var imageLoader:DownloadImage?
var components:URLComponents = {
var component = URLComponents()
import Foundation
import UIKit
import Auth0
import SwiftUI
class ArtistProfileVC: Toolbar, UITableViewDelegate, UITableViewDataSource {
var profile: UserInfo!
var isLoaded:Bool? = false
import React, { Component } from "react";
import ReactDOM from "react-dom";
import styled from 'styled-components';
import EditVideoFields from './edit-videoFields'
import { ButtonToggle } from "reactstrap";
import { Container, Row, Col } from 'reactstrap';
import axios from 'axios';
import auth0Client from "../../Auth";
import { useAuth0 } from "../../react-auth0-spa";
import {Auth0Context} from "../../react-auth0-spa"