Skip to content

Instantly share code, notes, and snippets.

View MonteLogic's full-sized avatar
♂️

Monte Logic MonteLogic

♂️
View GitHub Profile
@MonteLogic
MonteLogic / ListItem.js
Created September 8, 2019 20:07
Modal Issue #77da4
import React, { Component } from 'react';
import { connect } from 'react-redux';
import listActions from '../../../redux/todo/actions';
import ListModal from '../ListModal/ListModal';
import modalActions from '../../../redux/modal/actions';
// Duck file.
@MonteLogic
MonteLogic / Description Of Gist.txt
Last active March 22, 2021 07:14
Why is 'statement three' outputting to the console but 'statement four' is not?
This a gist about an audio plugin that plays a single audio player.
On line 83 of MainComponent.cpp I am getting the error: C2280 'LoadSaveXmlFile::LoadSaveXmlFile(void)': attempting to reference a deleted function
How do I undo a deleted function error and make Statement four output to the console?
@MonteLogic
MonteLogic / FilePaths.xml
Created March 22, 2021 14:59
XML Parsing - Why is 4 and 5 printing but not 6 or 7?
<PATHS>
<PATH ID="02">C:\Users\foo\Desktop\AudioFileTwo.mp3 </PATH>
</PATHS>
@MonteLogic
MonteLogic / Description.txt
Created March 23, 2021 05:51
How come when
How come I cannot grab this file and read it, I've linked the logic but I'm struggling with the .existsAsFile() method. What can
I do I can import the xml file?
Folder structure image on imgur ->
https://imgur.com/vvX4AdD
@MonteLogic
MonteLogic / Student.cpp
Last active April 4, 2021 19:16 — forked from drpventura/Student.cpp
Student class moved to separate .h and .cpp files. See video at https://youtu.be/gyA7uDlazkc.
#include "Student.h"
using namespace std;
// This is the constructor.
Student::Student(string theName, double theGpa) : name(theName), gpa(-1) {
set_gpa(theGpa);
}
@MonteLogic
MonteLogic / notes.php
Last active May 1, 2021 22:03
Read and Write into Wordpress MySQL
This is a tutorial on how to
** Insert form data on Database and
** Display Data from DB in Wordpress
<!-- ********************************* -->
<!-- Table Schema in MySQL -->
// 1. Here is the table schema we are using.
CREATE TABLE `books` (
`id` int(11) NOT NULL,
@MonteLogic
MonteLogic / Description.txt
Last active May 13, 2021 02:35
Once the information is parsed xml I want to re-use that logic in saveDuration
I have a function that can read and write xml but I want to change it into two functions, without copying and pasting the 10
lines of previous logic.
I figured out how to get data from other .cpp files but that was with Strings.
Any help is appreciated.
This is made so that the string that comes in on timeInFull is placed into the String newTimeInFull then that variable is
to be writeen on the xml file. However, the program is not letting me write from two different functions.
The same logic that works perfectly on line 106 and 107 happens to produces a segmentation dump when copied and
pasted onto line 138 and 139.
Solution find a way to properly use a shared pointer so that the function can be exectued into to different places.
Alternatively you caould have it fire in one place but the xml function loadData() is going to have to be run twice.
Once at open and again when new information is added.
@MonteLogic
MonteLogic / LoadSaveXml.cpp
Last active May 22, 2021 19:47
Want to use while loop to update scope logic but I get type error.
/*
==============================================================================
LoadSaveXml.cpp
Created: 6 Apr 2021 2:56:45pm
Author: deckard
==============================================================================
*/
#include <JuceHeader.h>
#include "LoadSaveXml.h"
Error
Linking simpleAudioPlayer - App
/usr/bin/ld: build/intermediate/Debug/LoadSaveXml_6eb31df5.o: in function `LoadSaveXml::writeData(juce::String)':
/home/deck/Documents/ManyVoxV1/Builds/LinuxMakefile/../../Source/LoadSaveXml.cpp:166: undefined reference to `LoadSaveXml::returnFilePath()'
collect2: error: ld returned 1 exit status
make: *** [Makefile:103: build/simpleAudioPlayer] Error 1