Skip to content

Instantly share code, notes, and snippets.

Ray Noppe raynoppe

Block or report user

Report or block raynoppe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@raynoppe
raynoppe / cocktailfunctions.js
Last active Feb 27, 2020
Cocktail Functions
View cocktailfunctions.js
// get
this.DataGet("/url");
this.DataGet("/url", "rows");
// Post
const newrecord = await this.DataPost("/form", data);
// open a modal
this.ModalOpen(modalname, component, props, events);
this.ModalOpen(
@raynoppe
raynoppe / queries.js
Created Feb 19, 2020
DNE api queries
View queries.js
// all queries require the auth token to be sent
// get all parent goals
const parentgoals = this.axiosget("/goals/parents");
View jss.js
const oldPackage = JSON.parse(JSON.stringify(this.package)); // copy object
setTimeout(() => {}, 1000);
// Arrays
array.splice(pos, 1); // Removes the first element of the array
// clone array
let arr2 = [...arr];
View neotrack.js
<script>
const NeoData = { user: 'neouser', site: 'siteid', track: [], tempaction: {} }
</script>
<script src="https://app.neoonline.live/v1/neo.js" type="text/javascript"></script>
View vuerouter.js
this.$router.push({ name: 'analytics' });
// open a modal
const that = this; // re-assign the scope so it doesn't intefere with the modals scope
this.modal = this.$buefy.modal.open({
parent: this,
component: ModalMapForm,
hasModalCard: true,
props: {
data: that.ActiveFormRow, // this is the row data that gets sent to the modal
You can’t perform that action at this time.