Skip to content

Instantly share code, notes, and snippets.

View bobbravo2's full-sized avatar

Bob Gregor bobbravo2

View GitHub Profile
// Load the NPM Package inquirer
var inquirer = require("inquirer");
// Create a "Prompt" with a series of questions.
inquirer.prompt([
// Here we create a basic text prompt.
{
type: "input",
message: "What is your name?",
// Dependencies
var express = require("express");
// Create express app instance.
var app = express();
// Routes
app.get("/:operation/:firstNum/:secondNum", function(req, res) {
// Parameters are received from the URL
  • Instructions:

    • Make a JavaScript file called bands.js that exports an object of music genres and bands like this:
    {
      punk: 'Green Day',
      rap: 'Run DMC',
      classic: 'Led Zeppelin'

}

@bobbravo2
bobbravo2 / bcs-rando-groups-3.js
Last active March 10, 2017 16:41
bcs scraper/groups of 3 randomizer
var csv = [];
//Parse the names out of BCS attendance page
$("#attendanceHistory tbody tr td:first-child").each(function(k, v) {
csv.push($(v).html())
});
var classSize = csv.length;
//Enter your group sizes here (Thanks @RGtalbot)
var groupSize = 3;
var group = [[], [], [], [], [], [], [], [], []];
for (var i = 0; i < (classSize/groupSize); i ++) {
app.get("/Veteran/:id", function(req, res) {
db.Employer.findOne({
where: {
id: req.params.id
}
}).then(function(dbEmployer){
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title>
<!-- Latest compiled and minified CSS -->
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
@extends('layout')
@section('title')
About
@stop
@section('jumbo')
Hello
@stop