Skip to content

Instantly share code, notes, and snippets.

Waiting for code to compile

Tiffany White twhite96

Waiting for code to compile
View GitHub Profile
View bonfire-title-case-a-sentence.js
// Bonfire: Title Case a Sentence
// Author: @twhite96
// Challenge:
// Learn to Code at Free Code Camp (
function titleCase(str) {
// Made the string an array
var arrayList = str.split(' ');
View Bonfire_Confirm_the_Ending.js
// Bonfire: Confirm the Ending
// Author: @twhite96
// Challenge:
// Learn to Code at Free Code Camp (
function end(str, target) {
// "Never give up and good luck will find you."
// -- Falcor
View Bonfire_Repeat_a_string_repeat_a_string.js
// Bonfire: Repeat a string repeat a string
// Author: @twhite96
// Challenge:
// Learn to Code at Free Code Camp (
function repeat(str, num) {
// repeat after me
var newString = "";
while (num > 0) {
newString += str;
twhite96 /
Created Aug 31, 2016 — forked from matty-digital/
Style guide for writing code in cs0134 and cs1520


This is the style guide that you will be required to follow for any and all code submissions in this class. There is a very good chance that, should you decide to venture out into the wild and develop software professionally, you will be required to follow some sort of coding standard. All submissions must adhere to this style guide, if they don't there will be penalties up to and including the submission not being accepted or cosidered for a grade. You're in luck though, as this is a relatively easy style guide to follow. Suggestions are always welcome and above all else, even if you hate style guides and vow solemnly never to follow one again in your whole life...just make sure your code is consistent. Your future self will thank you. On a side note, it will be relatively apparent to me if you don't follow the style guide.

If changes are made to this guide throughout the semester, I will be sure to let you know and discuss the change with you.



View gist:50e3011f1e2992d878565dca02d02bbe
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
twhite96 / Full Stack
Created Nov 13, 2016 — forked from royshouvik/Full Stack
Learn Full Stack JavaScript Web Development for FREE using resources like YouTube, Udacity and NodeSchool
View Full Stack
View bonfire-palindromes.js
// Bonfire: Check for Palindromes
// Author: @twhite96
// Challenge:!%0A%20%20%0A%20%20str%20%3D%20str.toLowerCase()%3B%0A%20%20%0A%20%20str%20%3D%20str.replace(%2F%5B%5Ea-z%7C1-9%5D%2Fg%2C%20%22%22)%3B%0A%20%20%0A%20%20if%20(str.length%20%3D%3D%3D%200)%7B%0A%20%20%20%20return%20true%3B%0A%20%20%7D%0A%20%20%0A%20%20if%20(str%5B0%5D%20!%3D%3D%20str%5Bstr.length-1%5D)%7B%0A%20%20%20%20return%20false%3B%0A%20%20%7D%0A%20%20%0A%20%20else%20%7B%0A%20%20%20%20return%20palindrome(str.slice(1%2Cstr.length%20-%201))%3B%0A%20%20%7D%0A%7D%0A%0A%0Apalindrome(%22eye%22)%3B%0A
// Learn to Code at Free Code Camp (
function palindrome(str) {
str = str.toLowerCase().replace(/[\W_]/g, '');
for(var i = 0, len = str.length - 1; i < len/2; i++) {
if(str[i] !== str[len-i]) {
return false;
twhite96 / 0_reuse_code.js
Created Apr 5, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console