Skip to content

Instantly share code, notes, and snippets.

View dtstanley's full-sized avatar
🏠
Working from home

DT Stanley dtstanley

🏠
Working from home
  • Wilmington, DE
View GitHub Profile
@dtstanley
dtstanley / index.css
Last active July 13, 2017 05:55 — forked from anonymous/index.css
Bible and Arts Quiz created by dtstanley - https://repl.it/bibleAndArtsQuiz
Empty file
@dtstanley
dtstanley / index.css
Last active July 5, 2017 21:47 — forked from anonymous/index.css
Implement item Deletion Less2Chlg by dtstanley - https://repl.it/HzSS/250
* {
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
}
button, input[type="text"] {
padding: 5px;
@dtstanley
dtstanley / index.html
Created July 5, 2017 20:09 — forked from anonymous/index.html
shopping-list-chalg1 created by dtstanley - https://repl.it/Ht71/1158
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shopping List</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="main.css">
</head>
@dtstanley
dtstanley / index.html
Last active June 30, 2017 20:01 — forked from anonymous/index.html
shopping-list-appDT created by dtstanley - https://repl.it/shopping-list-appDT
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shopping List</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="main.css">
@dtstanley
dtstanley / index.css
Created June 27, 2017 00:25 — forked from anonymous/index.css
fizzbuzz drillwJS created by dtstanley - https://repl.it/fizzbuzz-jQ2
* {
box-sizing: border-box;
font-family: sans-serif
}
main {
max-width: 960px;
margin: 0 auto;
min-width: 250px;
padding: 30px;
@dtstanley
dtstanley / index.css
Last active June 26, 2017 23:50 — forked from anonymous/index.css
lightbulb toggle jQ created by dtstanley - https://repl.it/lightbulb_toggle_jq
* {
box-sizing: border-box;
font-family: sans-serif;
}
main {
max-width: 960px;
margin: 0 auto;
min-width: 250px;
padding: 30px;
@dtstanley
dtstanley / index.css
Created June 26, 2017 22:18 — forked from anonymous/index.css
fizzbuzz drillwJS created by dtstanley - https://repl.it/GiQ8/694
* {
box-sizing: border-box;
font-family: sans-serif
}
main {
max-width: 960px;
margin: 0 auto;
min-width: 250px;
padding: 30px;
@dtstanley
dtstanley / index.css
Created June 22, 2017 20:40 — forked from anonymous/index.css
null created by dtstanley - https://repl.it/GiQ2/29
* {
box-sizing: border-box;
}
main {
padding: 30px;
min-width: 250px;
}
.hero {
@dtstanley
dtstanley / mostFrequentJS.js
Created June 15, 2017 23:00 — forked from anonymous/mostFrequentJS.js
mostFrequentJS created by dtstanley - https://repl.it/FfGw/116
function getTokens(rawString) {
// NB: `.filter(Boolean)` removes any falsy items from an array
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort();
}
//This function counts the number of times each word appears in the text (colletion)
function mostFrequentWord(text) {
//the getTokens function is invoked and the results are saved as the variable words
var words = getTokens(text);
//the wordFrequencies array is created
@dtstanley
dtstanley / Indd-1.js
Created June 15, 2017 21:57 — forked from anonymous/Indd-1.js
null created by dtstanley - https://repl.it/Indd/1
var person ={
name: ['Bob', 'Smith'],
age:32,
gender:'male',
interests: ['music','skiing'],
bio: function(){
alert(this.name[0] + ' ' +this.name[1] + ' is ' + this.age + ' years old. He likes ' + this.interests[0] + ' and ' + this.interests[1] + '.');
},
greeting: function(){
alert('Hi! I\'m ' + this.name[0] + '.');