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
""" | |
This module contains objects (mainly filepaths) to be used by other modules. | |
""" | |
import os | |
import datetime as dt | |
from pathlib import Path | |
os.chdir(os.path.dirname(os.path.abspath(__file__))) |
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
/* eslint-disable no-empty, no-console */ | |
import * as Sentry from '@sentry/react-native'; | |
const ENABLE_LOG = __DEV__; | |
export default { | |
info: (...args: any): void => { | |
if (ENABLE_LOG) console.log(...args); | |
}, | |
error: (...args: any): void => { |
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 datetime import date | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
from custom_components import MyCustomComponent, MyEditor, MyCalendar | |
external_stylesheets = ["https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) |
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
/* eslint-disable import/prefer-default-export */ | |
import MyCustomComponent from './components/MyCustomComponent.react'; | |
import MyEditor from './components/MyEditor.react'; | |
import MyCalendar from './components/MyCalendar.react'; | |
export {MyCustomComponent, MyEditor, MyCalendar}; |
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 React from 'react'; | |
import PropTypes from 'prop-types'; | |
import ReactQuill from 'react-quill'; | |
import 'react-quill/dist/quill.snow.css'; | |
/** | |
* MyEditor is a quill editor. | |
*/ | |
const MyEditor = ({id, setProps, value}) => { |
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 React from 'react'; | |
import PropTypes from 'prop-types'; | |
import dayjs from 'dayjs'; | |
import Calendar from 'react-calendar'; | |
import 'react-calendar/dist/Calendar.css'; | |
/** | |
* MyCalendar allows the user to select a date | |
*/ |
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 React, {Component} from 'react'; | |
import PropTypes from 'prop-types'; | |
export default class MyCustomComponent extends Component { | |
render() { | |
const {id, label, setProps, value} = this.props; | |
return ( | |
<div id={id}> |
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 dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
from custom_components import MyCustomComponent | |
external_stylesheets = ["https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) |
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
function App () { | |
const dispatch = useDispatch(); | |
const [currentVideo, setVideo] = useState(null); | |
const videoList = useSelector(state => state.app.videoList); | |
const queue = useSelector(state => state.app.queue); | |
useEffect(() => { | |
dispatch(getVideosApi()); | |
dispatch(uploadNext(true)); | |
}, []); |
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 { createStore, applyMiddleware, combineReducers } from 'redux'; | |
import thunkMiddleware from 'redux-thunk'; | |
import { ProcessingManager } from 'react-native-video-processing'; | |
import storage from '@react-native-firebase/storage'; | |
import * as mockApi from './mock-api'; | |
const ADD_QUEUE_QUEUE = 'ADD_QUEUE_QUEUE'; | |
const SET_CURRENT_STATE = 'SET_CURRENT_STATE'; | |
const REMOVE_FROM_QUEUE = 'REMOVE_FROM_QUEUE'; | |
const SET_VIDEO_LIST = 'SET_VIDEO_LIST'; |
NewerOlder