Skip to content

Instantly share code, notes, and snippets.

@ChazAttack73
ChazAttack73 / README.md
Created February 10, 2016 20:38 — forked from thgaskell/README.md
Sequelize + Express Starter Guide
@ChazAttack73
ChazAttack73 / README.md
Created February 9, 2016 00:19 — forked from sgnl/README.md
Kanban Angular

Kanbangular

"The Kanban technique emerged in the late 1940s as Toyota’s reimagined approach to manufacturing and engineering. ... The system’s highly visual nature allowed teams to communicate more easily on what work needed to be done and when. It also standardized cues and refined processes, which helped to reduce waste and maximize value." - via LeanKit.com

Goal

Create a 3 column Kanban board:

  • using AngularJS to build the client
  • using ExpressJS to build the server
  • using a SQL database to store your data.
  • implement stretch goals.
@ChazAttack73
ChazAttack73 / intro-mongo.md
Created February 5, 2016 23:50 — forked from sgnl/intro-mongo.md
MongoDB... COME ON DOOOOOOOWN

Before starting run the commands brew doctor and then brew update

Unix Users please install using the docs

Install Mongodb via Homebrew

$ brew install mongodb

Once brew is done installing, take note of the Caveats section that is printed to your console. Just like what we did previously for postgres it might be best to create a symlink then two aliases to start and stop the mongo progress.

  • Start your mongodb service
@ChazAttack73
ChazAttack73 / exercise.md
Created February 5, 2016 23:49 — forked from theRemix/exercise.md
MongoDB Practice

MongoDB Practice

MongoDB Exercise in mongo shell

Connect to a running mongo instance, use a database named mongo_practice.

Document all your queries in a javascript file to use as a reference.

Insert Documents

@ChazAttack73
ChazAttack73 / README.md
Created January 26, 2016 07:24
Assignment details for adding pg-promise to Articles Products and Express

##Adding a PSQL Database to Articles Products and Express

##Goal You are going to make your first application with a real database, by adding a PSQL database to your Articles Products and Express, Oh My! project.

##Let's break it down

  1. Build a UML schema for your products and your arcitles. What columns will you need? What is the data type of each column? Hint: First you will white board it. Get your UML approved by an instructor or a TA

  2. After your UML has been appproved by an instructor or a TA, build and test the queries in PSQL CLI.

@ChazAttack73
ChazAttack73 / postgres-brew.md
Created January 20, 2016 01:53 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the command: brew update

Installing

  1. In your command-line run the command: brew install postgresql
@ChazAttack73
ChazAttack73 / redacted.md
Created January 15, 2016 02:59 — forked from sgnl/redacted.md
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

@ChazAttack73
ChazAttack73 / fix.md
Created January 15, 2016 01:15 — forked from sgnl/fix.md
Fixing "All my values are strings"

in server.js file

server.use(bodyParser.urlencoded({ extended: true})); // remove this line
server.use(bodyParser.json({ type: 'application/json' })); //replace with this line

in Postman:

image

@ChazAttack73
ChazAttack73 / hanoi.md
Created January 12, 2016 19:20
The Temple of Hanoi - Recursive morning challenge

##Tower Of Hanoi

According to legend, there is a temple in Hanoi where are located sixty-four golden rings of graduated sizes and three diamond towers. Each day, the monks of the temple move a ring from one tower to another according to the rule that only one ring may be moved each day, that a single move consists of taking the highest ring from one tower and placing it on another tower, and that no ring may be placed on top of a smaller ring. The rings and towers were placed at the beginning of the world, and the monks have toiled through the ages to move all the rings from the designated starting tower to the designated finishing tower, at each day making the move that minimizes the total number of moves required. The world will end when the monks complete their work.

The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:

  1. Only one disk can be moved at a time.

  2. Each move consists of taking the upper disk from one of the stacks and placing it on to

@ChazAttack73
ChazAttack73 / client.js
Created January 9, 2016 21:56 — forked from sgnl/client.js
Process & Net client starter pack
const Net = require('net');
// Server is actually this client
const Server = Net.connect({host: 'localhost', port: 6969}, function() {
process.stdin.setEncoding('utf8');
Server.setEncoding('utf8');
process.stdout.write('SGNL: ');
process.stdin.on('data', function(data) {
Server.write(data);