Skip to content

Instantly share code, notes, and snippets.


Ben Paine bensama

  • Provo, Utah
Block or report user

Report or block bensama

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
bensama / Script using Async
Last active Dec 3, 2019
The Javascript file that uses Vue.js and Async
View Script using Async
var app = new Vue({
el: '#admin',
data: {
title: "",
file: null,
addItem: null,
items: [],
findTitle: "",
findItem: null,
bensama / Node_server
Last active Dec 3, 2019
Node Express server.js file. This file accesses MongoDB and creates a restfulAPI for storing data in a JSON file
View Node_server
const express = require('express');
const bodyParser = require("body-parser");
const app = express();
extended: false
View C++ Class Snippet
#include "BST.h"
//#include "Node.h"
BST::BST() {
root = NULL; // set default
BST::~BST() {
clear(); // clears tree
View CSS3
body {
font-family: InputSans-Light;
src: url(InputSans-Light.ttf);
background: black;
color: white;
#top {
text-align: center;
font-size: 72;
View Example Vue.js Code using REST API
var app = new Vue({
el: '#app',
data: {
number: '',
result: "",
methods: {
getInfo() {
console.log("Fetch " + this.number);
You can’t perform that action at this time.