Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
🦈

Kayden Althen sharkySharks

:octocat:
🦈
View GitHub Profile
View MakerSquare Challenges
/*
MakerSquare Coding Challenge #2
By Kayden Althen
Cookie/ingredient program that allows users to add and subtract values for sugar
and flour ingredients as well as cookies requested and money spent on ingredients.
*/
$(document).ready(function() {
//Inventory kept in .js file to prevent cookie counterfeiting
@sharkySharks
sharkySharks / Checkout_PRs_Locally.md
Last active Oct 7, 2015
General Git Workflow options. One way to keep your work up to date with the group project (upstream/master) by squashing, rebasing, and pushing up your latest work.
View Checkout_PRs_Locally.md

To checkout a Pull Request locally, add the following line to your .git/config file under the remote name for which you would like to checkout PRs.

    fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*

No need to delete or alter any other lines in the file, just add it under the remote name.

Example:

  [remote "upstream"]
  	url = https://github.com/rackerlabs/encore-account-ui.git
@sharkySharks
sharkySharks / Dockerfile example - multi-stage build
Last active Mar 5, 2019
docker multi stage build with not-root user permissions set
View Dockerfile example - multi-stage build
##############################################################
# This file is intended to be used with ./docker-compose.yml #
##############################################################
FROM node:10.14.1-alpine as build
# working directory
WORKDIR /usr/src/app
# global environment setup : yarn + dependencies needed to support node-gyp
RUN apk --no-cache --virtual add \
@sharkySharks
sharkySharks / docker-compose example
Created Mar 5, 2019
docker-compose with https and volume mount - supports hot reloading
View docker-compose example
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy:alpine
hostname: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/certs:/etc/nginx/certs