Skip to content

Instantly share code, notes, and snippets.

View brendalong's full-sized avatar
🌮
It's just a taco

Brenda Long brendalong

🌮
It's just a taco
View GitHub Profile
@brendalong
brendalong / gist:0c9a1026aec955398eaa1d28798aa31d
Created October 18, 2016 01:19
String Methods and Array Methods
////////// Strings ///////////
// In JavaScript, the first position of a string(called the index) is 0. The same is true of arrays.
var phrase = "The quick brown fox and the brown cat ate lunch at the Taco House";
console.log(phrase.indexOf("T"));
//can also apply to full words
var indexOfFox = phrase.indexOf("fox");
console.log("indexOfFox", indexOfFox);
console.log("phrase length", phrase.length);
@brendalong
brendalong / index.html
Created February 1, 2017 16:32
jquery starter html file
<!DOCTYPE html>
<html>
<head>
<title>Jquery Starter</title>
<link rel="stylesheet" type="text/css" href="css/jquery.css">
</head>
<body>
<p>Cheatsheet: <a href="https://oscarotero.com/jquery/">https://oscarotero.com/jquery/</a></p>
<div id="list-of-songs"></div>
@brendalong
brendalong / review.html
Created February 3, 2017 15:16
Review Stuffs
<!DOCTYPE html>
<html>
<head>
<title>Review of Some JS</title>
</head>
<body>
<button id="resultBtn">Click for Results</button>
<div id="result-1"></div>
<dl>
@brendalong
brendalong / package.json
Created February 7, 2017 15:27
browserify package
{
"name": "lib",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
@brendalong
brendalong / Gruntfile.js
Created February 7, 2017 15:32
grunt with browserify
module.exports = function(grunt){
grunt.initConfig({
browserify: {
'../dist/app.js': ['../javascripts/main.js']
},
jshint: {
options: {
predef: ["document", "console"],
esnext: true,
{
"items": [
{
"task": "mow the lawn",
"isCompleted": false,
"dueDate": "12/5/17",
"assignedTo": "Greg",
"location": "Joe's house",
"urgency": "low",
"dependencies": "sunshine, clippers, hat, water, headphones"
@brendalong
brendalong / mod.js
Created July 12, 2018 16:50
Testing modulus
myFunction(){
let house = "good";
}
@brendalong
brendalong / create-object-notes.js
Created July 23, 2018 12:21
create object notes
const veryImportantInfo = {
"socialSecurity": "934-11-0201",
"bankAccountNumber": "4483271255",
"bankRoutingNumber": "458979043"
}
const requestFunds = function (customerInfo) {
// Note: Banks require that the account number and routing number be combined into a single value
customerInfo.bankAccountNumber = customerInfo.bankAccountNumber + customerInfo.bankRoutingNumber
const transactionInfo = customerInfo.bankAccountNumber

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Testing Instructions

Please describe the tests required to verify your changes. Provide instructions so PR Tester can check functionality. Please also list any relevant details for your tests

[
{
"category": "HISTORY",
"air_date": "2004-12-31",
"question": "'For the last 8 years of his life, Galileo was under house arrest for espousing this man's theory'",
"value": "$200",
"answer": "Copernicus",
"round": "Jeopardy!",
"show_number": "4680"
},