This file contains hidden or 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
| -8 -V -T "ARTIST=%artist%" -T "TITLE=%title%" -T "ALBUM=%albumtitle%" -T "DATE=%year%" -T "TRACKNUMBER=%tracknr%" -T "GENRE=%genre%" -T "PERFORMER=%albuminterpret%" -T "COMPOSER=%composer%" %haslyrics%"tag-from-file=LYRICS="%lyricsfile%"%haslyrics% -T "ALBUMARTIST=%albumartist%" -T "DISCNUMBER=%cdnumber%" -T "TOTALDISCS=%totalcds%" -T "TOTALTRACKS=%numtracks%" -T "COMMENT=%comment%" %source% -o %dest% |
This file contains hidden or 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
| services: | |
| php: | |
| image: php:7.4-apache | |
| container_name: mycakeapp-webserver1 | |
| ports: | |
| - 8080:80 | |
| volumes: | |
| - ./:/var/www/html/ |
This file contains hidden or 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
| public function index(){ | |
| $user_id=$this->Auth->user('id'); | |
| $role=$this->Auth->user('role'); | |
| //check users role and show all questions if admin or just their questions of normal user | |
| if($role=='admin'){ | |
| //show all questions | |
| $this->paginate = [ |
This file contains hidden or 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
| version: "3.1" | |
| services: | |
| php-fpm: | |
| image: webdevops/php-nginx:7.4 | |
| container_name: mycakeapp-webserver | |
| working_dir: /app | |
| volumes: | |
| - ./:/app | |
| environment: | |
| - WEB_DOCUMENT_ROOT=/app/webroot |
This file contains hidden or 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 { StatusBar } from 'expo-status-bar'; | |
| import React, {State,Component } from 'react'; | |
| import { Button,StyleSheet, Text, View } from 'react-native'; | |
| const HelloWorldApp = () => { | |
| return ( | |
| <View | |
| style={{ | |
| flex: 1, |
This file contains hidden or 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 { StyleSheet, Text, View } from 'react-native'; | |
| const MyComponentName=props=>{ | |
| return( | |
| //put component stuff here | |
| <View> | |
| </View> | |
| ) |
This file contains hidden or 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
| const config = { | |
| apiKey: process.env.REACT_APP_API_KEY, | |
| authDomain: process.env.REACT_APP_AUTH_DOMAIN, | |
| databaseURL: process.env.REACT_APP_DATABASE_URL, | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| storageBucket: process.env.REACT_APP_STORAGE_BUCKET, | |
| messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID, | |
| }; | |
| /*create a .env eg ".env.development" |
This file contains hidden or 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
| __author__ = 'gerry' | |
| #verify if an image is corrupt or not | |
| #help from https://stackoverflow.com/questions/3964681/find-all-files-in-a-directory-with-extension-txt-in-python | |
| img_dir="c://temp//myimages/" | |
| corrupt_img_dir="c://temp//myimages//corruptimages//" | |
| good_img_dir="c://temp//myimages///goodimages//" | |
| from PIL import Image |
This file contains hidden or 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
| <template> | |
| </template> | |
| <script> | |
| export default { | |
| } | |
| </script> |
This file contains hidden or 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
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateRolesTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
NewerOlder