Skip to content

Instantly share code, notes, and snippets.

@KVeitch
KVeitch / Dart.md
Last active January 12, 2020 20:49

The Dart programming language was released by google just over two years ago. Dart looks a bit like C and is an object-oriented programming language. Dart is not only used for mobile app development but is a programming language. Approved as a standard by European Computer Manufacturer's Association (ECMA-408). When Dart is used in web application it is transpiled to JavaScript to it will run in web browsers.

Dart is a bit like JavaScript in that:

  • Dart has type inference. The data type of a variable need not be explicitly declared, as Dart will “infer ”what it is. In Java, a variable needs to have its type explicitly given during declaration. For example, String something;. But in Dart, the keyword is used instead like so, var something;. The code treats the variable according to whatever it contains, be it a number, string, bool or object.
  • All data types are objects, including numbers. Uninitialized variables have a value of null.
  • A return type of a method is not required in the method signa

sudo npm i expo-cli -g //globally installs expo command line interface (expo.io) //will need to input computer password> expo init under "Managed Workflow" select "blank" (top option) in the expo object under "name" change it to the app name cd into app directory npm start download the Expo app to phone from App Store (called Expo Client for iPhones) Scan QR code. Do not need an account on Expo for this to work //Let it build, if everything was successful your phone will have text saying "Open up App.js to start working on your app!" Android Simulator

@KVeitch
KVeitch / README.md
Last active December 2, 2019 20:58

Application for Job Search Mentorship Program

Section I: Calendar

  • What could a typical week look like for you?

M-F 6a Up with the kids off to school, them and me.
M-F 9-4 Class and Project work
M-F Projects until 5
M 5p-6p look for jobs on post and network
M 7p-8p Writer and customize cover letter

export const fetchCoWorkers = async () => {
  const url = 'http://localhost:3001/api/v1/coworkers'
  const response = await fetch(url);
  if (!response.ok) {
    throw new Error('There was an error getting your co-workers.');
  }
  const coWorkers = await response.json();
  return coWorkers
}

Action Creators Tests:

import { setType } from './index'


describe('Action Creators', () => {
    it('setType should return the correct object', () => {
        const returnState = dataThatGoesHere;
        const expected = {

type: 'SET_TYPE',

install after react:

npm i redux react-redux redux-devtools-extension -S

Add the correct imports to index.js

import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
@KVeitch
KVeitch / IdeaBox-Checklist.md
Last active October 16, 2019 18:22
IdeaBox Checklist:

Idea-Box like App

gist with code

  • Create a React App
    • npx create-react-app NAMEOFYOURAP
    • cd NAMEOFYOURAPP
    • npm install
  • Install Enzyme testing
    • npm i enzyme -D
  • npm install enzyme-adapter-react-16 -D

successful Fetch

    window.fetch = (url) =>{  
      return Promise.resolve({  
        json:()=> Promise.resolve({  
          slip:{advice:"Don't eat yellow snow"}  
        })  
      })  
 }; 
@KVeitch
KVeitch / README.md
Last active September 10, 2019 20:09
Outreach & Networking Plan Submissions

Outreach & Networking Plan

As we've discussed, meeting people, forming relationships, and having conversations are the key pieces to getting your foot in the door at any company. It's important to be proactive in your approach to outreach and networking, so it's necessary to make a plan for what you'll try to further your networking.

Identify a contact you will reach out to by the end of this module. This could be a mentor, alum, or anyone from your current network. Describe:

  1. Who is your contact, why do you want to connect with them, and what do you want to talk about?

Mark Reis (Site Reliability Engineer at Google, 13 years). The environment and community at the Boulder Google offices.