Skip to content

Instantly share code, notes, and snippets.

View ScottDalessandro's full-sized avatar
😉
Working on a new business

Scott D'Alessandro ScottDalessandro

😉
Working on a new business
View GitHub Profile

Overview:

Create a workshop review form that students and instructors fill out after a workshop is completed. The first section of the form requires the user to indicate if they are a student or instructor. Depending on their role, they will have a separate set of questions.

After the form is complete, the user will receive an email indicating that they successfully submitted the form and they will also receive their form entry data.

The form submission data will be stored in a google sheet, if a student gave the workshop a rating of 3 or less, a Program Lead will receive an email immediately.

At the end of each day, Program Leads, Instructors, and Academic Leads will receive an email at 10 PM EST with a summary of workshop ratings.

@ScottDalessandro
ScottDalessandro / Rose-Colorizer.md
Created June 22, 2020 13:43 — forked from danceoval/Rose-Colorizer.md
A CSS Challenge Problem

Rose Colorizer

Prompt

They say life is nicer through rose-colored glasses!

Design a simple web app that features a color swatch preview (in 6 color hex notation, e.g. #a02bff), and filter button. When pressed, the filter button should apply a 'Rose' fitler, making the color of the swatch 20% more red, 10% less green, and 10% more blue.

Notes

function helloWorld(){}
function setPropertiesOnObjLiteral(obj) {
obj["x"] = 7;
obj["y"] = 8;
obj["onePlus"] = function(num) {
return num + 1;
}
}
function setPropertiesOnArrayObj(arrayObject) {
arrayObject['hello'] = function() {
@ScottDalessandro
ScottDalessandro / test.js
Created June 8, 2016 00:56
https://repl.it/CZD9/0 created by javascriptninja
function createFunctions(num){
var arr = [];
for (var i = 0; i < num; i++) {
arr.push(i);
}
return arr.map(function(num){
return function(){
return num;
};
});
@ScottDalessandro
ScottDalessandro / sublime-command-line.md
Created June 7, 2016 17:13 — forked from adrianorsouza/sublime-command-line.md
launch sublime text from the command line

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

Palindrome - Exercise Link

Have the function palindrome(str) take the str parameter being passed and return the string "true" if the parameter is a palindrome, (the string is the same forward as it is backward) otherwise return the string "false".

** Punctuation and numbers will not be part of the string. **

  • INPUT: palindrome("racecar");
  • OUTPUT: "true"
@ScottDalessandro
ScottDalessandro / GAS Tutorial.md
Created October 13, 2015 13:44 — forked from colezlaw/GAS Tutorial.md
Simple Google Apps Script tutorial

A couple of folks have asked for an example of what Google Apps Script is useful for. The things I've done so far are pretty specific applications, so not useful to the general public. I decided to put together a simple script which may (or may not) be more generally useful, but still shows off some of the coolness of Google Apps Script.

If you're a tactile learner like I am, I encourage you to actually type in the samples rather than copy/pasting them. I don't learn anything by using copy/paste.

Background

I generally work from home, so when I do go into the office, there are usually a number of coworkers there who also generally work from home. We try to schedule a lunch during the day, but when the time comes to get into cars, it's a long and painful process of trying to decide where to eat. I guess none of us has an alpha personality, so we each are trying to please the others. The goal of this script is to narrow down the selection process using a more alpha personality - a PRNG.

The workflow work

@ScottDalessandro
ScottDalessandro / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ScottDalessandro
ScottDalessandro / gist:8419924
Last active January 3, 2016 05:59
Closure Practice
//Find the value of the result variable
var hidden = mystery(3);
var jumble = mystery3(hidden);
var result = jumble(2);
function mystery ( input ){
var secret = 4;
input+=2;
function mystery2 ( multiplier ) {