Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheelWordPress install is a custom install
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel WordPress install is a custom install| /** | |
| * Append data to a Google Spreadsheet | |
| * | |
| * You will need a file called '.env' with the following values: | |
| * | |
| * - GOOGLE_ID (Google oAuth Client ID) | |
| * - GOOGLE_SECRET (Google oAuth Client Secret) | |
| * - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token) | |
| * - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID) | |
| * |
| import requests | |
| import base64 | |
| from tqdm import tqdm | |
| import sys | |
| import subprocess as sp | |
| FFMPEG_BIN = 'ffmpeg.exe' | |
| master_json_url = sys.argv[1] | |
| base_url = master_json_url[:master_json_url.rfind('/', 0, -26) - 5] |
| import axios from 'axios'; | |
| class Service { | |
| constructor() { | |
| let service = axios.create({ | |
| headers: {csrf: 'token'} | |
| }); | |
| service.interceptors.response.use(this.handleSuccess, this.handleError); | |
| this.service = service; | |
| } |
| import React from 'react' | |
| import axios, { post } from 'axios'; | |
| class SimpleReactFileUpload extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state ={ | |
| file:null | |
| } |
| // FUN METHOD | |
| /** | |
| * Remove duplicates from an array of objects in javascript | |
| * @param arr - Array of objects | |
| * @param prop - Property of each object to compare | |
| * @returns {Array} | |
| */ | |
| function removeDuplicates( arr, prop ) { | |
| let obj = {}; | |
| return Object.keys(arr.reduce((prev, next) => { |
| import {Directive, Attribute} from '@angular/core'; | |
| import {NgModel} from '@angular/common'; | |
| @Directive({ | |
| selector: '[mask]', | |
| host: { | |
| '(keyup)': 'onInputChange()' | |
| } | |
| }) | |
| export class Mask { | |
| maskPattern: string; |
| . | |
| ├── actions | |
| ├── stores | |
| ├── views | |
| │ ├── Anonymous | |
| │ │ ├── __tests__ | |
| │ │ ├── views | |
| │ │ │ ├── Home | |
| │ │ │ │ ├── __tests__ | |
| │ │ │ │ └── Handler.js |
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>