Skip to content

Instantly share code, notes, and snippets.

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

Rafael rapala61

🏠
Working from home
View GitHub Profile
@rapala61
rapala61 / AJAXlab.md
Last active May 7, 2016 21:46
AJAX lab with the doughnut API.

Practicing AJAX - (60m)

Introduction

You're about to write a lot of AJAX-backed JavaScript – using jQuery – that will complete our little Doughnut Shop app.

Make use of the fantastic and delicious https://api.doughnuts.ga. Your task is to use your JS skills to list out all the doughnuts in our database and get our form working so we can add more.

Note: Keep in mind, this API doesn't persist (so that other students can use it, too), but it does act like it. When you create a new doughnut, it'll show you results as if that doughnut was persisted. Make use of it!

3rd Party API/AJAX - (1:30m)

Introduction

You will work in groups of 2 for this exercise.

You should have an account @TasteKid, and an API KEY. Otherwise do this first.

We will now build a TasteKid client. We will integrate TasteKid's API with our own search engine recommendation. Take this opportunitty to implement creative styling with the CSS framework of your choice.

SCRUM ARTIST

Introduction

Hello artists! We have been given our new projects!. We are tasked to create some masterpieces based on a given theme. The paintings will be proudly displayed at the White House next Monday.

Exercise

We will form the same teams we have for project 3.

Command Line Interface - (20m)

Introduction

You are going to build a few homes and move stuff around a bit using the Command Line.

Exercise

Navigate to your desktop and create a folder named cli_lab

Change directory to the newly created cli_lab. We are going to work from inside this folder.

@rapala61
rapala61 / Oauth2.md
Created April 20, 2016 15:27 — forked from mziwisky/Oauth2.md
Oauth2 Explanation

OAUTH2

The Problem

I’m a web app that wants to allow other web apps access to my users’ information, but I want to ensure that the user says it’s ok.

The Solution

I can’t trust the other web apps, so I must interact with my users directly. I’ll let them know that the other app is trying to get their info, and ask whether they want to grant that permission. Oauth defines a way to initiate that permission verification from the other app’s site so that the user experience is smooth. If the user grants permission, I issue an AuthToken to the other app which it can use to make requests for that user's info.

Note on encryption

Oauth2 has nothing to do with encryption -- it relies upon SSL to keep things (like the client app’s shared_secret) secure.

GitHub team organization

Pick a member of the team as the responsible party to manage the organization. For now I'll refer to him as the GitHub Lead.

Create an organization

  • Github Lead responsibility
  • The organization name has to be unique in github

Add team members as organization members

Pull workflow

How to sync your development with upstream

  1. Checkout your master branch
  2. Pull from upstream into master && push from master into origin.
  3. checkout your branch
  4. Merge master into branch
  5. Push branch into origin

Finally, when you are ready to create a pull request

@rapala61
rapala61 / example.cs
Created April 2, 2018 16:04 — forked from brandonmwest/example.cs
Generating base64-encoded Authorization headers in a variety of languages
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue(
"Basic",
Convert.ToBase64String(
System.Text.ASCIIEncoding.ASCII.GetBytes(
string.Format("{0}:{1}", username, password))));
@rapala61
rapala61 / ds-messaging-test.md
Last active April 25, 2018 15:22 — forked from mshmsh5000/ds-messaging-test.md
DoSomething messaging engineer: Code test

Assignment

Create three components that interact:

  1. A web app that serves a form. The form should functionally and visually mimic our user registration form. The submit handler should send an event & the data payload to
  2. A queue that receives the event, where it can be retrieved by
  3. An event consumer, which emails the form data to a preset address that you and we can access (e.g., dscodetest@mailinator.com)

Details

https://www.youtube.com/watch?v=et8xNAc2ic8