Skip to content

Instantly share code, notes, and snippets.

View sgnl's full-sized avatar
🍪
Do you agree to share your cookies?

Ray Farias sgnl

🍪
Do you agree to share your cookies?
  • Hawaii
View GitHub Profile
@sgnl
sgnl / quickgit.md
Last active August 29, 2015 14:23
Push all teh repoz
  • Navigate to the folder of the exercise/project you want to update your github with.
  • Make sure it is being tracked by GIT by entering the command: git status. If you get a resonse then you're good to go. If you get an error message then create a repository for this project by clicking here (be signed into your github account)
  • Add any unstaged files to be committed, unstaged files appear RED: as shown here
  • Add files to be committed, you can add files one at a time
    git add fineNameHere.js
    git add directoriesAreGoodToo/
    git add multipleFiles.css AndFolders/ CanBe/Separated.js BySpaces.css
@sgnl
sgnl / css-selector.md
Last active August 29, 2015 14:23
CSS Selector Challenge

CSS Selector

Hello Awesome Programmer Person, My name is Ray and I need a tool built that will help other students visualize how CSS Selectors work. This tool can be added to any HTML document you have. This tool should:

  1. Provide a way for a user to input CSS selector code into a form or something. I think they look like #header or sometimes .messages I dont know, you know CSS right?
  2. After the user submits the CSS code, your tool will highlight all the HTML things that it finds. Maybe a Yellow Background color? Something bright!
  3. If the tool doesn't find anything, maybe let the user know somehow? I dont know, it's up to you.
  4. Maybe practice on your own HTML file.

Someone made this, I think you could make it better

@sgnl
sgnl / validation.md
Last active August 29, 2015 14:23
Express Middleware Exercise - Validation

Express Middleware Exercise - Validation

Your job is to add validations to the messages being posted to your Chatroom Application's Server by implementing Middleware.

Each validation requirement below will be it's own middleware in the series.

Commit your code each time you successfully implement a new middleware handler.

Validation Requirements

Payload

@sgnl
sgnl / signup.md
Last active August 29, 2015 14:23
Build A Sign Up For Our Startup

The pitches have completed. You and your team have decided on the technologies and the tech lead has already begun hacking away. The Biz Dev approaches you and whispers two words, "User Acquisition". You can already feel the pressure...

Hey so like, we need to go out to the Night Market and start polling for opinions on our service. I already bought the domain and so I just need you to build the sign-up form so we can gather emails. Should be easy right? Cool. Oh, I need this done ASAP because I'm leaving for the market now. Thaaaaaanks :D

Goal

You have been tasked to build the landing page which will have a Sign Up Form. User's will visit the page, be asked to enter their first and last name, and email address. Then the User will be presented with a thank you message. You must use ExpressJS, implement some basic validations on the data coming in, and do this quick!

Requirements

Your Form will POST data to your '/signup' endpoint. No XHR will be used.

@sgnl
sgnl / redacted.md
Last active November 13, 2019 19:28
Redacted

Redacted

One of your clients have contacted you with a problem. Their Users have figured out that their chat messages aren't filtered and they can say anything that they want. The CEO dislikes the slang terms being used on the internet and wants to implement a system which will remove certain words and replace them.

Goal

Your task is to build middleware for Express which will search through a message's contents and replace certain words with ones that are more, family-friendly. You have been given a set of words to which have been blacklisted.

You will build a small project which will test your middleware.

Blacklisted words and acceptable replacements

@sgnl
sgnl / bubble.md
Last active August 29, 2015 14:24
Bubble Sort

Goal

Create a function that accepts an array of numbers. Once the function completes execution, the array should be sorted. Your function will be your own implementation of the Bubble Sort algorithm.

Example

var unsortedArray = [4, 3, 2, 7, 10, 6];

bubbleSort(unsortedArray);
@sgnl
sgnl / tmux.conf
Last active August 29, 2015 14:24 — forked from spicycode/tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sgnl
sgnl / express.md
Last active August 29, 2015 14:24
Weekend Homework

Goal

Creating an Express server (don't auto-generate). Add routes based on the specs provided below. Some routes have additional requirements for features.

Test your server's routes with an application like POSTMAN or with the curl command from the terminal.

Server Specs

Modules

  • some JS server
  • something to parse data that will be posted to the server