Skip to content

Instantly share code, notes, and snippets.

View zcaceres's full-sized avatar
👨‍💻
programming

Zach Caceres zcaceres

👨‍💻
programming
View GitHub Profile
@zcaceres
zcaceres / mealpal.json
Created May 6, 2018 02:04
mealpal-json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zcaceres
zcaceres / index.js
Created October 27, 2017 19:36 — forked from groteworld/index.js
Example aws/aws-sdk-js IotData API Lambda usage
// An usage of AWS.IotData in Lambdas
//
// This example assumes some things
// 1. That you have a environment variable AWS_IOT_ENDPOINT. This is the url that you can find in AWS IoT dashboard settings
// 2. The lambda and your aws iot devices are on the same account and region
const AWS = require('aws-sdk');
const iotData = new AWS.IotData({ endpoint: process.env.AWS_IOT_ENDPOINT });
const handler = (event, context) => {
@zcaceres
zcaceres / docker.md
Created July 7, 2017 19:37
Notes on Docker

Docker

Containers

Linux containers created isolated environments that share a single operating system.

Containers live on top of an OS with its own dependencies and other configurations/ They don't know about each other. They have their own file systems.

Docker makes it easy to deal with Linux containers.

The Docker engine manages your containers.

@zcaceres
zcaceres / player-prefs.md
Last active July 4, 2017 15:09
Snippet for PlayerPrefs blog post
void SetLanguagePreference(string language)
{
 PlayerPrefs.SetString(“language”, language);
}

void SetDifficultyPreference(string difficulty)
{
  PlayerPrefs.SetString(“difficulty”, difficulty);
}
@zcaceres
zcaceres / how-static-website-generators-work.md
Created July 2, 2017 15:21
How Does a Static Website Generator Work?

How Does a Static Website Generator Work?

A dynamic website takes a bunch of data on the backend – content, databases, layout etc. and sends the user a finished product when they request it.

A static website generator has a set of HTML files delivered immediately to the user when they arrive to the site. These files are the finished product, holding all the latest data, layout etc. These files are delivered together when the user reaches the site. Content is often written in Markdown or another format that can be transformed into the final HTML for display in the browser.

Static websites can't really offer a real-time experience or much in the way of user involvement.

@zcaceres
zcaceres / How-to-build-a-VR-CommLink-with-Google-Daydream-Part-1.md
Created June 13, 2017 04:39
Part 1: Making NASA style Radio Transmissions with the Tuna.js and WebAudio API
@zcaceres
zcaceres / bootcamp-mastery-do-it-from-memory.md
Created May 26, 2017 02:31
bootcamp mastery: do it from memory

Do It From Memory

I love flashcards. One of the fun things about programming is that you can turn almost anything into a flashcard.

The secret of flashcards is spaced repetition. Just as something is slipping out of memory, flashcards force you to retrieve it. This strengthens the neural connections to the concept, just like exercising regularly strengthens your muscles.

You can use Anki to make your flashcards, because it automatically spaces out your repetition.

Practice every day. Put 'review Anki' in your todo/task list of choice.

Memorization gets a bad rap. In programming, some people will say 'I can just look it up in the docs when I need it!', or 'Programming isn't memorizing syntax, it's about knowing how to reason through problems.' Don't listen to these people.

@zcaceres
zcaceres / bootcamp-mastery-do-as-many-tests.md
Created May 24, 2017 22:19
Bootcamp Mastery: As Many Tests As You Can

One of the great things about Fullstack is that they provide you with many excellent pre-made tests and workshops. Most of these use test-driven development (TDD). In other words, they display a series of tests that suggest functionality in your program. You have to write the code that makes those tests pass.

When you're gearing up for your Senior Checkpoint these tests are worth their weight in gold.

During the weeks we had to prepare for our final exam, I did each test three times. I spaced them out, so that each test was re-taken a few days apart. This helped me honestly gauge how well I was remembering things, and to space out my practice.

Don't watch YouTube videos as your primary way of studying for the test. Do these tests instead.

There are three big benefits to this approach.